datadesk / django-project-template Goto Github PK
View Code? Open in Web Editor NEWA custom template for initializing a new Django project the Data Desk way.
A custom template for initializing a new Django project the Data Desk way.
Causing a weird WSGI error when you try to runserver for the first time off a fresh install.
https://docs.djangoproject.com/en/1.9/topics/http/urls/#example
Basically "patterns" goes, and urlpatterns just becomes a list of URL objects.
I probably missed something obvious. I'm on Django 1.8.7
[08/Dec/2015 14:13:38] "GET /admin/login/?next=/admin/ HTTP/1.1" 500 94349
[08/Dec/2015 14:13:40] "GET /login HTTP/1.1" 404 12618
Internal Server Error: /admin/login/
Traceback (most recent call last):
File "/Users/cbodkin/.virtualenvs/newsletters.latimes.com/lib/python2.7/site-packages/django/core/handlers/base.py", line 223, in get_response
response = middleware_method(request, response)
File "/Users/cbodkin/.virtualenvs/newsletters.latimes.com/lib/python2.7/site-packages/debug_toolbar/middleware.py", line 129, in process_response
panel.generate_stats(request, response)
File "/Users/cbodkin/.virtualenvs/newsletters.latimes.com/lib/python2.7/site-packages/debug_toolbar/panels/profiling.py", line 170, in generate_stats
root = FunctionCall(self.stats, self.stats.get_root_func(), depth=0)
File "/Users/cbodkin/.virtualenvs/newsletters.latimes.com/lib/python2.7/site-packages/debug_toolbar/panels/profiling.py", line 51, in __init__
self.stats = statobj.stats[func][:4]
KeyError: None
Django docs say this should be handled by default now: https://docs.djangoproject.com/en/1.9/howto/static-files/#serving-static-files-during-development
I'm talking about this: https://github.com/datadesk/django-project-template/blob/master/project_name/urls.py#L14-L24
Not quite sure how this works yet, but: https://docs.djangoproject.com/en/1.9/ref/settings/#templates
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.