Compare commits
No commits in common. "b25f5c66e1d70433c1e95f44924bb13b01746a8f" and "b326440964e5d8b781927b6855d24b26bcd29453" have entirely different histories.
b25f5c66e1
...
b326440964
2 changed files with 5 additions and 5 deletions
|
@ -35,4 +35,4 @@ USER web
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "3", "movienight.wsgi:application"]
|
||||||
|
|
|
@ -6,19 +6,19 @@ from movie_manager.models import Movie, MovieList, Schedule, Showing
|
||||||
# Register your models here.
|
# Register your models here.
|
||||||
@admin.register(Movie)
|
@admin.register(Movie)
|
||||||
class MovieAdmin(admin.ModelAdmin):
|
class MovieAdmin(admin.ModelAdmin):
|
||||||
list_display = ["title", "imdb_id", "added_by"]
|
pass
|
||||||
|
|
||||||
|
|
||||||
@admin.register(MovieList)
|
@admin.register(MovieList)
|
||||||
class MovieListAdmin(admin.ModelAdmin):
|
class MovieListAdmin(admin.ModelAdmin):
|
||||||
list_display = ["name", "owner"]
|
pass
|
||||||
|
|
||||||
|
|
||||||
@admin.register(Schedule)
|
@admin.register(Schedule)
|
||||||
class ScheduleAdmin(admin.ModelAdmin):
|
class ScheduleAdmin(admin.ModelAdmin):
|
||||||
list_display = ["name", "owner"]
|
pass
|
||||||
|
|
||||||
|
|
||||||
@admin.register(Showing)
|
@admin.register(Showing)
|
||||||
class ShowingAdmin(admin.ModelAdmin):
|
class ShowingAdmin(admin.ModelAdmin):
|
||||||
list_display = ["showtime", "movie"]
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue