Skip to content

theonlyNischal/class-ultimate-classof2020

Repository files navigation

Quick Installation Guide 2017-10-17

Too Quick Installation Process

If You had done this many times: #. Clone This Repo or Download As Zip By Cliking The Big Green Button. #. Activate Your Virtual Environment. #. Install All The Dependencies(Requirements.txt) #. Change Directory To The Base Directory(where you could get manage.py) #. In Your Terminal(or Command Prompt):

python manage.py collectstatic
python manage.py makemigrations
python manage.py migrate

image

Now you can browse privately, and other people who use this device won’t see your activity. However, downloads and bookmarks will be saved. Learn more

Detailed Installation Process ++++++++++++++++++ Installing Python ++++++++++++++++++

This is an django app. Django is written in 100% pure Python code, so you’ll need to install Python on your system. Django requires Python 2.3 or higher. If you’re on Linux or Mac OS X, you probably already have Python installed.

Type python at a command prompt (or in Terminal). If you see something like this, then Python is installed:

> python
Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Otherwise, if you see an error such as "command not found", you’ll have to download and install Python

to get started. The installation is fast and easy.

Creating an isolated Python environment

A virtual environment (also called a virtualenv) is like a private box where we can stuff useful computer code into for a project we're working on It is recommended that you use virtualenv to create isolated Python environments, so you can use different package versions for different projects, which is far more practical than installing Python packages system wide.

Linux

To install virtualenv:

pip install virtualenv

After you install virtualenv, create an isolated environment with the following command:

virtualenv myenvironment

Note: Here myenvironment can by any valid name you like.

Now, You created a virtual environment let's activate it:

To Activate:

source myenvironment/bin/activate

Congratz, You created a new virtualenv.

Requirements.txt

This file consist all the dependencies of this app, for eg: django, pytz, PIL etc. To install all the dependencies, just type:

pip install -r Requirements.txt

Make Sure You have active internet connection

This will install all the dependencies in your virtualenv. You can check this at site-packages folder of your virtualenv.


Now, All our dependencies are fullfilled.

  1. In your terminal, Change Directory to the Base Directory of our website. i.e the folder which consist manage.py:

    cd ultimatewebsite
  2. Then:

    python manage.py collectstatic
    python manage.py makemigrations
    python manage.py migrate
  3. To Run The Server:

    python manage runserver
  4. Click Here To Check If All Things Are Ready

About

💢 ❤️ 💚 Classof2020: Django, Bootstrap, JQuery. Live @ -->> http://nischallalshrestha.pythonanywhere.com 💜 ❤️

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •