diff --git a/.gitignore b/.gitignore
index 8220b2e02a0e7b76565b2e92d9ef300a126089f5..63c0028095b9dcc5f78af7bfc1246dc5a9826c69 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ shared/static/shared/*.js
 shared/static/shared/*.css
 shared/static/shared/*.txt
 media/*
+.venv
diff --git a/env.example b/env.example
index baea7fb2d3c931c714de78f2a011a46f88507d43..245514c976285349081b48df0c831b760a9bb657 100644
--- a/env.example
+++ b/env.example
@@ -2,7 +2,7 @@ DATABASE_URL="postgresql://ucebnice:ucebnice@localhost:5432/ucebnice"
 
 SECRET_KEY=supersecret
 
-SITE_URL="http://localhost:8013"
+SITE_URL="http://localhost:8014"
 
 OIDC_RP_REALM_URL="http://localhost:8080/realms/master/"
 OIDC_RP_CLIENT_ID=ucebnice
diff --git a/lectures/models.py b/lectures/models.py
index 1979f4eb059ff89f2e7aefc0768c47d94baefe3f..beb6b70ec81f812d931e85b6137014ba92f5a064 100644
--- a/lectures/models.py
+++ b/lectures/models.py
@@ -182,7 +182,7 @@ class Lecture(NameStrMixin, models.Model):
             return LectureGroupType.objects.filter(
                 lecture=self,
                 group__in=(
-                    LectureGroup.filter(
+                    LectureGroup.objects.filter(
                         models.Q(user_groups__in=request.user.groups.all())
                         if not request.user.is_superuser
                         else models.Q(id__isnull=False)  # Always True
diff --git a/manage.py b/manage.py
index 701b8e3665a69f161e23733263eaccb07b868d13..7441d7c45dead0a189bbdba8f2c45831a425712a 100755
--- a/manage.py
+++ b/manage.py
@@ -6,7 +6,7 @@ import sys
 
 def main():
     """Run administrative tasks."""
-    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ucebnice.settings")
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ucebnice.settings.dev")
     try:
         from django.core.management import execute_from_command_line
     except ImportError as exc:
diff --git a/ucebnice/asgi.py b/ucebnice/asgi.py
index 97f009382813a650c585c06411700755c138410e..bed8a8dae667179447e483f1216d14e8955ef7cf 100644
--- a/ucebnice/asgi.py
+++ b/ucebnice/asgi.py
@@ -11,6 +11,6 @@ import os
 
 from django.core.asgi import get_asgi_application
 
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "registry.settings")
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ucebnice.settings.dev")
 
 application = get_asgi_application()