1234567891011121314151617181920212223242526272829303132 |
- import os
- import sys
- import django
- from django.conf import settings
- BASE_DIR = os.path.dirname(os.path.abspath(__file__))
- INSTALLED_APPS = [
- 'redditbot',
- ]
- # Database
- # https://docs.djangoproject.com/en/4.1/ref/settings/#databases
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': 'db.sqlite3',
- }
- }
- settings.configure(
- INSTALLED_APPS = INSTALLED_APPS,
- DATABASES = DATABASES,
- )
- django.setup()
- if __name__ == "__main__":
- from django.core.management import execute_from_command_line
- execute_from_command_line(sys.argv)
-
|