A simple content management system for blogging, powered by Django. Template included with material design and responsiveness.
Follow these notes in order to have a copy of this project working. If deploying for production, remember to read the deployment section.
- Python 3.x
- Django 1.11.x
- Database backend supported by Django
- Pillow Library
Note: This project was developed and tested using Python 3.5.2 and Django 1.11.2. I assume no responsibility for problems if used with different versions.
Instructions to build a development env with Django 1.11 and MySQL database. Some commands may require to be prefixed with sudo
in specific systems.
Install virtualenv for Python 3.
pip install virtualenv
Set up a virtual environment.
virtualenv -p python3 plasmacms
Activate the virtualenv.
source path/to/virtualenv/folder/bin/activate
Install Django.
pip install django=1.11
Install MySQL client.
pip install mysqlclient
Install Pillow.
pip install Pillow
Clone this project.
git clone https://github.com/JPYamamoto/plasma-cms
Edit the database information in the file plasma_cms/settings.py
according to your database's settings.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'DB NAME',
'USER': 'DB USER',
'PASSWORD': 'DB PASSWORD',
'HOST': 'DB HOST',
'PORT': 'DB PORT'
}
}
Add a secret key for your Django project. You can create one in the Online Django Secret Key Generator.
SECRET_KEY: 'YOUR SECRET KEY'
Make migrations.
python manage.py makemigrations
python manage.py migrate
Run server.
python manage.py runserver
If this code will be run for production, remember to do the following:
- Set
Debug = False
in plasma_cms/settings.py - Run
python manage.py collectstatic
to correctly serve static files. - It is highly recommended to use a virtualev (both in development and in production)
- Python 3.5 - Programming Language.
- Django 1.11 - Web Framework.
- Pillow - Library for working with images.
- MaterializeCSS - Responsive Front End Framework.
- jQuery - Javascript library for DOM manipulation.
- Material Design Icons - Icons toolkit.
- FontAwesome - Icons toolkit.
- Medium Editor - WYSIWYG editor.
- Medium Editor Insert Plugin - Plugin to add images and videos.
- 1.0.0
- First stable release.
- Fork it (https://github.com/JPYamamoto/plasma-cms)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
- Juan Pablo Yamamoto - First Release - JPYamamoto - Website
Make a contribution and your name will be listed here.
This project is licensed under the MIT License - see the LICENSE.md file for details.