Home of techspace
To contribute check out the Contributor's Guide.
This README would normally document whatever steps are necessary to get the application up and running.
Running techspace-web on your system:
-
Make sure you have Python 3 and pip setup on your computer. https://www.makeuseof.com/tag/install-pip-for-python/
-
Make sure you have virtual environment installed. To check run command
$ pip freeze
To install virtual environment$ pip install virtualenv
-
Clone the repository.
-
cd into project
cd techspace-web
-
Create and activate virtual environment for the project
$ python3 -m virtualenv env $ source env/bin/activate
-
Install requirements
$ pip3 install -r requirements.txt
-
Now run the server:
$ python manage.py runserver
-
Make migrations to the database using the following commands:
$ python manage.py makemigrations $ python manage.py migrate
-
Now open localhost:8000 in browser and the application must be running.
-
Every time to run the project first activate virtual environment and then run the server
$ source env/bin/activate $ python manage.py runserver
-
Install Cloudinary's module using pip
pip install cloudinary
-
Add "cloudinary" to the list of INSTALLED_APPS in settings.py.
-
Include Cloudinary's Python classes in settings.py
import cloudinary
import cloudinary.uploader
import cloudinary.api
-
Initalize Cloudinary tags in your Django templates
{% load cloudinary %}
-
Create account and setup api in cloudinary at https://cloudinary.com/
-
Configure cloudinary api in settings.py
cloudinary.config(
cloud_name = "cloud_name",
api_key = "api_key",
api_secret = "api_secret",
secure = "True",
)
Cheers !!!! you are ready to go . For more details read https://cloudinary.com/documentation/django_integration#django_getting_started_guide