-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So, this was originally structured (and maybe it's the Django way, since it was so easy to stumble into this configuration with the standard `startproject` command??) so that the root of the repository contained manage.py, my virtualenv stuff, and a Finetooth/ directory where the actual code lives. But I feel like that's unnecessary nesting: I want the root of the repository to be useful; having manage.py and settings.py in the same directory makes sense to me. Of course, moving stuff required changing a lot of module import paths, too: I think I got it all, because I can retrieve models at the manage.py shell and the site shows the posts again (and this project doesn't really do anything else at this point). (Oh, and I also just tested that I can make and apply a migration #2.) Maybe the extra layer of nesting would have been useful for dependency management? If my code is going to live in a "core" app, then importing some other Python module that happens to be named "core" would probably require some weird import logic hacking? But I can't quite bring myself to care.
- Loading branch information
1 parent
5e7bd9d
commit c0df9b4
Showing
13 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from django.conf.urls import patterns, include, url | ||
|
||
urlpatterns = patterns('', | ||
url(r'^$', 'Finetooth.core.views.home', name='home'), | ||
url(r'^$', 'core.views.home', name='home'), | ||
) |
File renamed without changes.