how to runserver with source code instead of quick installation?

K
  • 8 Sep

i'd like to start the site with the source code.
if i used the quick-start method, it's hard to develop.
maybe i need to replace any project_name in the source code? i'd be very appreciated if any help

nitely
Esteban C Borsani
  • 12 Sep

follow the quick start, uninstall django-spirit, and clone the project so you use the local copy
you'll need to move the manage.py file to the working directory so it can find the spirit package
the working directory should look like:

- docs
- spirit
- project
- - project
- - - settings
- - - __init__.py
- - - urls.py
- manage.py
- ... more files

the manage.py content should look like:

#!/usr/bin/env python

import logging
import os
import sys

if __name__ == "__main__":
    logging.captureWarnings(True)
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.project.settings.dev")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
K
  • 13 Sep

@nitely, thanks for guide!