Skip to content

This app allow you to create your own custom django project structure, and then use it as you please

License

Notifications You must be signed in to change notification settings

laser13/django-structurer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Structurer

About:

The purpose of this app is to enable some custom script for manage.py and for django-admin.py(maybe?) that creates a different folder structure for Django. This structure what I thought of a good one for projects that I'm working, and that possibly you are working too.

Usage:

For now you can use the command that lets you create a new project using the default structure or your own custom structure. You can run the command to create a new project:

django-structure.py startproject projectName custom_structure

And this will create the basic project layout.

You can also run the file created with the last command to make a new app with the custom structure:

python app_starter.py myNewApp

And this will create the basic app layout.

You can make your own custom project structure using the default structure file as a base. Since its a simple yaml file, it will be very easy for you to do it.

Env Vars:

To get the maximum usage from this app, you should set this vars in your system: export DJSTRUCT_HOME=/some/where/my_djstruct export DJSTRUCT_DEFAULT=/some/where/my_djstruct/most_used_struct.yaml

If the DJSTRUCT_HOME is set you can have custom settings like new snippets and custom structures. And if you use the same custom structure over and over, you can just set the DJSTRUCT_DEFAULT to this file so it will use it as the default.

Install:

pip install -e git+https://github.com/laser13/django-structurer.git#egg=django_structurer

License:

This software is distributed using MIT license, see LICENSE file for more details.

About

This app allow you to create your own custom django project structure, and then use it as you please

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%