Skip to content

Commit 8e3dd4a

Browse files
Merge pull request Jackiebibili#3 from Jackiebibili/organize-directory
Reorganize directory structure
2 parents e0430cf + 8907d61 commit 8e3dd4a

31 files changed

+14
-14
lines changed

apps/startup/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
default_app_config = 'apps.startup.apps.MyAppConfig'
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
from django.apps import AppConfig
2-
from ticketscraping.scraping import start
2+
from ..ticketscraping.scraping import start
33
from datetime import datetime
44
from threading import Thread
55

66

77
class MyAppConfig(AppConfig):
8-
name = "startupApp"
8+
name = "apps.startup"
99
verbose_name = "start tmtracker"
1010

1111
def ready(self):
1212
print(
1313
f"server started at {datetime.now().strftime('%d/%m/%Y %H:%M:%S')}")
14-
print("=== database connection is established ===")
1514
Thread(target=start).start()
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)