Git Product home page Git Product logo

movies-project's Introduction

Movies project

Deploy

Next steps describe project installation on staging or production server. If you'd like to setup project for local developmetn then please read DEV-README.rst

  1. Install all requirements on system as described in REQUIREMENTS.rst

  2. Clone repository to server.

  3. cd to cloned repository.

  4. Setup virtual environment:

    virtualenv --no-site-packages -p python2.6 .env
    source .env/bin/activate
    
  5. Run next commands in the commandline:

    PROJ_NAME=movies
    cp Makefile.def.default Makefile.def
    cp $PROJ_NAME/settings/local.py.default $PROJ_NAME/settings/local.py
    # for postgres:
    pip install -r requirements/postgre.txt
    # for sqlite:
    pip install -r requirements/sqlite.txt
    
  6. You also need to edit database. Edit file $PROJ_NAME/settings/local.py:

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.BACKENDHERE!!!',
            'NAME': 'DB_NAME',
            'USER': 'DB_USER',
            'PASSWORD': 'DB_PASSWORD',
            'HOST': 'DB_HOST_OR localhost',
            'PORT': '3306',
            }
    }
    
  7. Settings also need to know where virtualenvironment is located, so edit file $PROJ_NAME/settings.local.py again:

    ENV_PATH = proj('.env2.6')
    PYTHON_PATHNAME = 'python2.6'
    
  8. Now you can create database schema:: make initproject

  1. Now project is ready for deployment. Deploy it with nginx+uwsgi or with apache+mod_python
  2. When project is running you will need to setup correct site domain.
  1. Open admin interface in browser, it will be available at http://SITE_URL/admin/sites/site/1/. login '[email protected]', password 'admin'
  2. Edit and save
  1. It is also recommended to change password. It can be done in admin interface too:
http://SITE_URL/admin/auth/user/1/password/
  1. Various project specific settings ccan be changed here:
http://SITE_URL/settings

movies-project's People

Contributors

imposeren avatar

Watchers

Alex VE avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.