mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-25 17:32:16 +00:00
Remove hardcoded URL
This commit is contained in:
@@ -54,7 +54,7 @@ class EventOembed(generic.View):
|
|||||||
|
|
||||||
def get(self, request, pk=None):
|
def get(self, request, pk=None):
|
||||||
|
|
||||||
base_url = "https://rigs.nottinghamtec.co.uk"
|
base_url = request.scheme + '://' + request.META['HTTP_HOST']
|
||||||
full_url = base_url+reverse('event_embed', args=[pk])
|
full_url = base_url+reverse('event_embed', args=[pk])
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
|
|||||||
Reference in New Issue
Block a user