Skip to content

PuercoPop/empty_django_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PuercoPop's Default django project

Rationale

** Q) Why have use a settings module instead of a settings file? ** A) Because that way when doing custom configurations I only have to override the differences. For example if I have a custom configuration for a subdomain, myaccount.*.* I could create a myaccount.py file inside the settings directory with the following

ROOT_ULRS = ( 'myaccounts.urls' )

to overide the desired settings.

** Q) What is this from local_settings import * non-sense? **

A) To allow easy overrriding of default/testing settings with a local configuration

** Q) Y U SO HANDOME **

A) Sorry I like to troll

What to do after cloning

  • Update submodules
git submodule init
git submodule update
  • Generate new secret key
python project/misc/generate_secret_key.py > project/settings/local\_settings.py
  • point to new origin
  • move pre hook commits
mv {project/misc/.git/hooks,}

My Workflow

WIP

How I like to work/organize repo

WIP

The 'Batteries'

project/misc

'generate_secretkey.py'

generates a new secret key.

pre-commmit hook

Does a search insde the apps directory for strings matching '# TODO' and gathers them in the file TODO in the root directory

TODO runs unittests

Closing remarks

If you found this useful drop me a line at pirata (at) gmail (dot) com

About

Just my default empty project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages