-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now using Waitress as WSGI server, as it is much faster. Requries pip…
… install -r requirements.txt
- Loading branch information
Showing
20 changed files
with
353 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.7.6.3 | ||
0.7.6.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from configuration import Config | ||
import sys, os, time | ||
from django.core.management import call_command | ||
from YAPO.wsgi import application | ||
|
||
# First of all, check if the db is located in the old folder (root) | ||
|
||
def boot(): | ||
dest = os.path.join(Config().database_dir) | ||
okmoved = True | ||
|
||
SCRIPT_ROOT = os.path.dirname(os.path.realpath(__file__)) | ||
compiled = False | ||
try: | ||
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'): | ||
SCRIPT_ROOT = os.path.dirname(sys.executable) | ||
compiled = True | ||
except AttributeError: | ||
SCRIPT_ROOT = os.path.dirname(os.path.realpath(__file__)) | ||
compiled = False | ||
|
||
if not os.path.isfile(os.path.join(dest, "db.sqlite3")): | ||
print("\n") | ||
print("No database\n===========") | ||
print(f"There is no database installed at: {os.path.join(dest, 'db.sqlite3')}\nGenerating a new database...\n\n") | ||
time.sleep(4) | ||
call_command('makemigrations') | ||
call_command('migrate') | ||
return | ||
|
||
|
Oops, something went wrong.