pythonkc / pythonkc-com Goto Github PK
View Code? Open in Web Editor NEWDjango app for pythonkc.com.
Django app for pythonkc.com.
I think gondor supports some sort of worker or task concept. If so, that should be used to periodically refresh the meetup data for the home page. Currently, the first user to hit the page after cache expiry takes the hit.
Recording suggestion from Andrew so that I don't lose it...
It would be nice if the map icon was clickable so that people could get directions to the venue right there from the page. Not sure if
it's a quick fix or not. Might need to change that from a LatLong to a ImageMapType or something. I think the LatLong is just a
base class with limited functionality?"
When issuing vagrant provision
on an existing VM, I get the following failure. Can we make the Run migrations
task resilient to re-runs?
==> pykcdotdev: Running migrations:
==> pykcdotdev: Rendering model states... DONE
==> pykcdotdev: Applying admin.0001_initial...
==> pykcdotdev: :stderr: Traceback (most recent call last):
==> pykcdotdev: File "manage.py", line 11, in <module>
==> pykcdotdev: execute_from_command_line(sys.argv)
==> pykcdotdev: File "/home/vagrant/virtualenvs/pythonkc/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
==> pykcdotdev: utility.execute()
...
==> pykcdotdev: File "/home/vagrant/virtualenvs/pythonkc/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 316, in execute
==> pykcdotdev: return Database.Cursor.execute(self, query)
==> pykcdotdev: django.db.utils.OperationalError: table "django_admin_log" already exists
==> pykcdotdev:
Gondor actually has a pretty nifty log viewer, but we have to know to go look at it if there are ever errors on the site. Therefore, we should configure it to email me (and whoever else wants to be notify) if things ever go horribly wrong on the site.
In the Vagrantfile, the line for the synced folder:
if OS.unix?
pykcdotdev.vm.synced_folder "./", "/vagrant/", type: "nfs"
causes the following issue:
Bringing machine 'pykcdotdev' up with 'virtualbox' provider...
==> pykcdotdev: Importing base box 'debian/jessie64'...
==> pykcdotdev: Matching MAC address for NAT networking...
==> pykcdotdev: Checking if box 'debian/jessie64' is up to date...
==> pykcdotdev: Setting the name of the VM: pykcdotdev
It appears your machine doesn't support NFS, or there is not an
adapter to enable NFS on this machine for Vagrant. Please verify
that`nfsd` is installed on your machine, and try again. If you're
on Windows, NFS isn't supported. If the problem persists, please
contact Vagrant support.
Just removing the type
specification from that command resolves this, I believe.
Our VM is using Python 3. We need to make the app work with Python 3. Also: how do you get virtualenvs working in ansible with python3. Please. @lgw4 this is your fault. :)
So says Zackh
In our provision.sh
, we have the commands:
aptitude purge -y chef chef-zero puppet puppet-common
aptitude dist-upgrade -y
Are these needed for some reason? They add a fair amount of time to the provisioning, so if they're not required, I'd just remove them.
Action items:
[1] http://charlesleifer.com/blog/django-patterns-pluggable-backends/
It's on Julia's design, we don't have it yet in the code. Probably something simple, like this [1]. Will probably go to the groups private gmail address when a site visitor submits.
UPDATES:
So says Zach
This is not a trivial one... obviously for later.
It would be a good show if our site detected mobile user agents and provided a better targeted experience for those devices.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.