Compare commits
3 Commits
250f841e00
...
6102459637
Author | SHA1 | Date |
---|---|---|
Lukáš Kucharczyk | 6102459637 | |
Lukáš Kucharczyk | e4cd75d51f | |
Lukáš Kucharczyk | b1c8f58855 |
|
@ -12,4 +12,5 @@ COPY entrypoint.sh /
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
USER timetracker
|
USER timetracker
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
ENV VERSION_NUMBER $(git describe --tags --abbrev=0)
|
||||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
7
Makefile
7
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: createsuperuser
|
.PHONY: createsuperuser shell
|
||||||
|
|
||||||
all: css migrate
|
all: css migrate
|
||||||
|
|
||||||
|
@ -34,4 +34,7 @@ loadsample:
|
||||||
python src/web/manage.py loaddata sample.yaml
|
python src/web/manage.py loaddata sample.yaml
|
||||||
|
|
||||||
createsuperuser:
|
createsuperuser:
|
||||||
python src/web/manage.py createsuperuser
|
python src/web/manage.py createsuperuser
|
||||||
|
|
||||||
|
shell:
|
||||||
|
python src/web/manage.py shell
|
|
@ -47,7 +47,8 @@ def add_purchase(request):
|
||||||
form.save()
|
form.save()
|
||||||
|
|
||||||
context["form"] = form
|
context["form"] = form
|
||||||
return render(request, "add_purchase.html", context)
|
context["title"] = "Add New Purchase"
|
||||||
|
return render(request, "add.html", context)
|
||||||
|
|
||||||
|
|
||||||
def add_game(request):
|
def add_game(request):
|
||||||
|
|
Loading…
Reference in New Issue