Firstly, it will produce a new project structure then you will have to deploy it locally and finally enjoy it (webdesign integration, development, etc..).
Produced project structure¶
Just invoke the Cookiecutter template to create a new project:
You will be prompted to anwser to some inputs about your project and other inputs to enable some applications:
Project name, should be unique into your repository host.
[Default:A slug created from project name]
This will be used as the repository name.
Your username to use to push the repository.
The hostname of the repository host.
[Default:A random key]
The secret key to use in Django settings, you should let the default value (a randomly generated string).
Enable the accounts component.
Enable a basic contact form with an optional captcha field.
Enable Porticus application.
Enable Slideshows application.
Enable Zinnia application.
Enable CMS internationalization.
Use a dedicated nginx configuration to enable https only through let’s encrypt.
System user where project will be deployed to (in its home directory).
Host where to to deploy project in integration mode (using ssh).
Host where to to deploy project in production mode (using ssh).
Email ‘from’ adress use to send deployment informations.
Email ‘to’ adress use to send deployment informations.
Usually you won’t need to care about fields starting with
deploy_ and just let their default values.
Take care that question about applications require a strict
yes value to enable them, all other value are considered as a
Once structure has been created, a GIT repository will be initialized with the right remote url and a first commit, ready to push.
Deploy produced project¶
When project has been created, you need to install it to use it. Do it in your project directory:
When it’s finished, active the virtual environment:
You can then use the project on the development server:
django-instance runserver 0.0.0.0:8001
0.0.0.0 is some sort of alias that mean “bind this server on my ip”, so if your local ip is “192.168.0.42”, the server will be reachable in your browser with the url
:8001 that mean “bind the server on this port”, this is a required part when you specify an IP. Commonly you can’t bind on the port 80 so allways prefer to use a port starting from 8001.
If you don’t know your local IP, you can use
127.0.0.1 that is an internal alias to mean “my own network card”, but this IP cannot be reached from other computers.
The first required action is the creation of a CMS page for the home page and also you should fill-in the site name and its domain under
Administration > Sites > Sites > Add site.