Deploy fixes and mental note
This commit is contained in:
1 parent
d470eb8553
commit
33d11fa0c8
2 files changed
+2
-1
No files matched your search
@@ -4,6 +4,7 @@ import hashlib
|
|||||||
from main.models import UserPass
|
from main.models import UserPass
|
||||||
|
|
||||||
def generate_username():
|
def generate_username():
|
||||||
|
# FIXME dangerous and stupid @ above 5k usernames
|
||||||
length = 4
|
length = 4
|
||||||
username = "guest{0}".format(''.join(random.choice(string.digits) for x in range(length)))
|
username = "guest{0}".format(''.join(random.choice(string.digits) for x in range(length)))
|
||||||
# unique
|
# unique
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
project_path = '/var/www/neuf.no/mbftns/mbftns/'
|
project_path = '/opt/django/mbftns/mbftns/'
|
||||||
if project_path not in sys.path:
|
if project_path not in sys.path:
|
||||||
sys.path.append(project_path)
|
sys.path.append(project_path)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user