3 ms·
Small typo: 'sudp pip install virtualenv' I think you meant 'sudo' As for file structure, I thought Django came with a pre-built structure? I may be wrong, as
by era86 14y ago
Small typo: 'sudp pip install virtualenv'
I think you meant 'sudo'
As for file structure, I thought Django came with a pre-built structure? I may be wrong, as I've only used Django for quick side projects and not really any extensive development.
Great post nonetheless!
- oellegaard 14y agoThank you very much, I'll fix that right away! ;) Django comes with a structure, only slightly different.
- RossM 14y agodjango-admin.py/manage.py[0] can enforce a typical structure using startproject/startapp. It's actually very similar to the OP's, except the project has an app of the same name that contains settings.py, wsgi, etc. It looks like the OP puts apps inside the folder that would usually be a standalone app. I'm sure there's a page on djangoproject.com somewhere that talks about this but I can't find it right now. [0]: https://docs.djangoproject.com/en/1.5/ref/django-admin/ https://docs.djangoproject.com/en/1.5/ref/django-admin/
- aodin 14y agoDjango 1.4 introduced custom templates for projects and applications. Useful for when you've settled on a file structure: https://docs.djangoproject.com/en/dev/ref/django-admin/#django-admin-option---template https://docs.djangoproject.com/en/dev/ref/django-admin/#djan...