-
Notifications
You must be signed in to change notification settings - Fork 30
Installation on Windows
Harley Hicks edited this page Sep 20, 2017
·
11 revisions
In the future, much of the instructions below will be automated so that setup is quick and painless.
This has been tested on Windows 7 and Windows 10.
It is recommended to run Tenma in a Python Virtual Environment.
- Install Python 3.5 or greater: https://www.python.org/
- NOTE: When installing, make sure to check the "Add Python.exe to Path" checkbox.
- Install Visual C++ 2015 Build Tools: http://landinghub.visualstudio.com/visual-cpp-build-tools
- Run the following commands in Command Prompt:
- Install Virtual Environment:
pip install virtualenv
- Change to the directory you want install Tenma. For example, if you want to install this in your Documents folder:
cd Users\[YOUR WINDOWS USERNAME]\Documents
- Create your virtual environment:
virtualenv venv
- Activate virtual environment:
Scripts\activate
- Install Virtual Environment:
-
Download the repository, unarchive it, and rename it to
tenmaserver
. -
Copy the
tenmaserver
to thevenv
directory. The directory should look like the following:venv . |- Include |- Lib |- Scripts |- tcl |- tenmaserver |- comics |- files |- etc.
-
Run the following commands in Command Prompt:
- Change into the
tenmaserver
directory:cd Users\[YOUR WINDOWS USERNAME]\Documents\venv\tenmaserver
- Install dependencies:
pip install -r requirements.txt
- Generate a secret key (for Django security):
python manage.py generatesecretkey
- Create your database:
python manage.py migrate
- Create your admin user:
python manage.py createsuperuser
- Change into the
-
Open a second command prompt window and run the following commands:
- Change into the
venv
directory:cd Users\[YOUR WINDOWS USERNAME]\Documents\venv
- Activate virtual environment:
Scripts\activate
- Change into the
tenmaserver
directory:cd Users\[YOUR WINDOWS USERNAME]\Documents\venv\tenmaserver
- Start up Celery for task management:
celery -A tenma worker --loglevel=info
- Keep Celery running!
- Change into the
- In your first command prompt window, start your local server:
python manage.py runserver [YOUR IP ADDRESS]:8000
- For example:
python manage.py runserver 192.168.1.30:8000
- For example:
- In your browser, go to
http://[YOUR IP ADDRESS]:8000
- For example:
http://192.168.1.30:8000
- For example:
Next, you'll want to import your comics.