A Django template for a typical django CMS installation with no special bells or whistles. It is supposed as a starting point for new projects.
If you prefer a different set of template settings, feel free to create your own templates by cloning this repo.
To install django CMS 4 by hand type the following commands:
- Create virtual environment and activate it
python3 -m venv .venv source .venv/bin/activate
- Install Django, django CMS and other required packages
pip install django-cms
- Create project
<<project_name>>
using this templatedjangocms <<project_name>> cd <<project_name>>
- Run testserver
./manage.py runserver
Note: If you run into a problem of missing dependencies, please
update pip
using pip install -U pip
before running the
djangocms
command.
- Clone the repository , duh! obviously!
git clone https://github.com/zite69/Project-Phygitalist
- Make a copy of the env.example file.
cp env.example .env
- Edit your system hosts file. On Linux and Mac it is: /etc/hosts. Add an entry like this:
127.0.0.1 seller.z69.local www.z69.local
- Edit .env and customize according to your needs. But change the following at least:
ALLOWED_HOSTS=seller.z69.local,www.z69.local # Add the values that you added above - in the /etc/hosts file SECRET_KEY=# Generate some random string 32+ characters long and use here DEBUG=True #To enable debugging features in local development ZITE69_SU_USERNAME=myuser # Username for the system admin user ZITE69_SU_PASSWORD=mypass123 # Password for the system admin user
- Now run the following commands one after another. Depending on the speed of the machine, this process can take upto an hour to run. Because it creates the database and loads Country and Pincode data into the database and there are over 150k rows in the Pincode table.
python manage.py migrate python manage.py runscript initialize_db python manage.py runscript createsu
- Now you can run the local server with:
python manage.py runserver 0.0.0.0:8000
- Now go to http://www.z69.local:8000/ and you will be asked to login and create the CMS page for the home page. Create that, and then do the same with http://seller.z69.local:8000/ and create that CMS page as well.