Commit 64761a83 authored by Skia's avatar Skia
Browse files

Don't come with MySQL by default

parent 6cf25336
Pipeline #219 failed with stage
in 33 seconds
......@@ -9,7 +9,6 @@ from django.contrib.auth.forms import PasswordResetForm
from core.models import User
import MySQLdb
def validate_type(value):
......@@ -35,6 +34,7 @@ class Subscriber(User):
super(Subscriber, self).save()
if create and settings.IS_OLD_MYSQL_PRESENT:
try: # Create user on the old site: TODO remove me!
import MySQLdb
db = MySQLdb.connect(**settings.OLD_MYSQL_INFOS)
c = db.cursor()
c.execute("""INSERT INTO utilisateurs (id_utilisateur, nom_utl, prenom_utl, email_utl, hash_utl, ae_utl) VALUES
......@@ -83,6 +83,7 @@ class Subscription(models.Model):
subject_template_name='core/new_user_email_subject.jinja', from_email="")
import MySQLdb
try: # Create subscription on the old site: TODO remove me!
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment