This project is expected to allow users to create or spin up a basic website.
To run locally on your machine, you can use the following command:
Clone the repository
git clone https://github.com/zuri-training/Team_14_CMS.git
Move to the project folder
cd Team_14_CMS
Create a Virtual environment
Virtualenv env
Activate the Virtual environment
env/Scripts/activate or env/bin/activate
Install Dependencies
pip install -r requirements.txt
Migrate Datebase
python manage.py migrate
Create Superuser
python manage.py createsuperuser
Finally, run server
python manage.py runserver
sudo -u postgres psql
CREATE DATABASE myproject;
CREATE USER myprojectuser WITH PASSWORD 'password';
ALTER ROLE myprojectuser SET client_encoding TO 'utf8';
ALTER ROLE myprojectuser SET default_transaction_isolation TO 'read committed';
ALTER ROLE myprojectuser SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE myproject TO myprojectuser;
quit postgreSql with \q;
pip install gunicorn psycopg2-binary
sudo nano ~/myprojectdir/myproject/settings.py
ALLOWED_HOSTS = ['your_server_domain_or_IP', 'second_domain_or_IP', . . ., 'localhost']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'myproject',
'USER': 'myprojectuser',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '',
}
}
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
~/myprojectdir/manage.py makemigrations
~/myprojectdir/manage.py migrate
python manage.py collectstatic
sudo ufw allow 8000
python manage.py runserver 0.0.0.0:8000
gunicorn --bind 0.0.0.0:8000 csmproject.wsgi
- User: Unauthenticated
- Visit the platform to view basic information about it
- View and Interact with the documentation
- Register to setup a new website
- Setup website by filling out some information
- Browse through available templates
- User: Authenticated
- Full access to the platform
- Access to backend of created website
- Ability to create more pages
- Ability to change template
- Unique address
- Ability to add social media links