Roberto Berto 4 rokov pred
rodič
commit
ae4f21766b

+ 1 - 0
requirements.txt

@@ -5,3 +5,4 @@ sqlparse==0.4.1
 requests==2.25.1
 python-slugify==4.0.1
 validators==0.18.2
+python-memcached==1.59

+ 1 - 1
vycontrol/accounts/templates/accounts/start.html

@@ -23,7 +23,7 @@
 <div class="separe-form">
 
 
-    <form action="{% url 'accounts:accounts-index' %}" method="post">
+    <form action="{% url 'main-page' %}" method="post">
         {% csrf_token %}
         
         <p>

+ 1 - 9
vycontrol/accounts/urls.py

@@ -14,14 +14,6 @@ from . import views
 
 app_name = 'accounts'
 
-
-
-
-
-
 urlpatterns = [
    path('', views.profile, name='accounts-profile'),
-]
-
-
-
+]

+ 1 - 1
vycontrol/accounts/views.py

@@ -39,7 +39,7 @@ def index(request):
         if 'username' in request.POST and 'password' in request.POST:
             user = User.objects.create_superuser(username=request.POST['username'], email='', password=request.POST['password'])
             user.save()
-            return redirect('%s?next=%s' % (reverse('registration-login'), '/config/instance-add'))
+            return redirect('interface:interface-list')
 
     context = { 
         'users_admin': users_admin.all(),

+ 3 - 3
vycontrol/config/migrations/0007_instance_group.py

@@ -1,4 +1,4 @@
-# Generated by Django 3.0.5 on 2020-05-08 06:16
+# Generated by Django 3.1.7 on 2021-04-05 06:55
 
 from django.db import migrations, models
 import django.db.models.deletion
@@ -7,7 +7,7 @@ import django.db.models.deletion
 class Migration(migrations.Migration):
 
     dependencies = [
-        ('auth', '0011_update_proxy_permissions'),
+        ('auth', '__first__'),
         ('config', '0006_auto_20200427_2202'),
     ]
 
@@ -15,6 +15,6 @@ class Migration(migrations.Migration):
         migrations.AddField(
             model_name='instance',
             name='group',
-            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='auth.Group'),
+            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='auth.group'),
         ),
     ]