Sysadmin is а simple blog application made on Django.
Creating and editing a post
When creating and editing a post for the body of the post, the 'django-summernote' editor is used. https://github.com/summernote/django-summernote
Setup
- git clone https://github.com/Singlelogic/sysadmin.git
- cd ./sysadmin
- python3.8 -m venv ./venv
- source ./venv/bin/activate
- pip install -r requirements.txt
- Database
The application uses the PostgreSQL database.
Create the .env file in the application root using the SECRET_KEY environment variable (for example, SECRET_KEY = 'database_password'). Also set other settings for the database in the 'settings.py' file (NAME, USER...).
Or replace with the default settings when using the SQLite database.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
- python manage.py migrate
- python manage.py runserver