Installation Gencrud-engine
For Ubuntu
git clone https://github.com/gencrud/gencrud.git . install.sh
Congratulations! Open the browser - http://localhost:8000
For Windows
- Install git
- Install Python
- Install virtualenv and activate it
- Start Migrations
- Launch the project (see Installation Description below)
Installation Description
- Downoload or clone
git clone https://github.com/gencrud/gencrud-engine.git
the gencrud-engine repo. - Open the console in the root directory gencrud and type
ll
. You should see the following folder and file structure:- gencrud/
- .gitignore
- README.md
- install.sh
- Next, we will install and launch the project. This script will install the virtual environment, install the database (SQLite by default) and add the default theme -
. install.sh
Congratulations! Open the browser - http:localhost:8000.
The welcome page should be displayed. Next, you need to fill in the general settings in the admin panel to see the home page with your content. It should take about a minute!
Project structure (after installation)
- app/ - interface folder (css, js, images)
- gencrud/ - back and folder (core)
- theme/ - theme folder (html, media)
- venv/ - virtual environment folder
- README.md
- install.sh
- .gitignore
Technology versions
You can learn more about the dependencies in the file gencrud/requirements.txt.
Todo: future changes
- Fix description of this section
- Copy
ssh_key
from general/gen/settings.py - Fix using DB general/gen/settings_db.py
- Upgrade - ?. The upgrade.zip archive must exist into the root.
cd <PROJECT_NAME> . gencrud/gencrud/sh/upgrade.sh -h # check command . gencrud/gencrud/sh/upgrade.sh core
Next, fix settings_db.sql
python gencrud/manage.py makemigrations python gencrud/manage.py collectstatic --noinput python gencrud/manage.py migrate
Useful comands:
All next commands run from the root <your_project_name> folder.
Run tests - python gencrud/manage.py test
Create a supers user - python gencrud/manage.py createsuperuser
Run project - python gencrud/manage.py runserver