Skip to content

pkimber/old_story

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Story

Django application for news stories...

Install

Virtual Environment

Note: replace patrick with your name (checking in the example folder to make sure a file has been created for you):

mkvirtualenv dev_story
pip install -r requirements/local.txt

echo "export DJANGO_SETTINGS_MODULE=example.dev_patrick" >> $VIRTUAL_ENV/bin/postactivate
echo "unset DJANGO_SETTINGS_MODULE" >> $VIRTUAL_ENV/bin/postdeactivate

add2virtualenv ../moderate
add2virtualenv ../base
add2virtualenv ../login
add2virtualenv .
deactivate

To check the order of the imports:

workon dev_story
cdsitepackages
cat _virtualenv_path_extensions.pth

Check the imports are in the correct order e.g:

/home/patrick/repo/dev/app/story
/home/patrick/repo/dev/app/login
/home/patrick/repo/dev/app/base
/home/patrick/repo/dev/app/moderate

Testing

Using pytest-django:

workon dev_story
find . -name '*.pyc' -delete
py.test

To stop on first failure:

py.test -x

Usage

workon dev_story

py.test -x && \
    touch temp.db && rm temp.db && \
    django-admin.py syncdb --noinput && \
    django-admin.py migrate --all --noinput && \
    django-admin.py demo_data_login && \
    django-admin.py init_app_moderate && \
    django-admin.py demo_data_story && \
    django-admin.py runserver

Release

https://github.com/pkimber/docs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages