how to runserver with source code instead of quick installation?

  • 8 Sep '21

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

Esteban C Borsani
  • 12 Sep '21

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

- docs
- spirit
- project
- - project
- - - settings
- - -
- - -
- ... more files

the content should look like:

#!/usr/bin/env python

import logging
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "")

    from import execute_from_command_line

  • 13 Sep '21

@nitely, thanks for guide!