Email Forwarding.

This commit is contained in:
usmannasir
2018-06-12 03:56:19 +05:00
parent b30a1c56e5
commit 86b5e2adb5
8 changed files with 979 additions and 6 deletions

View File

@@ -220,16 +220,17 @@ def deleteWebsite(request):
json_data = json.dumps(data_ret)
return HttpResponse(json_data)
numberOfWebsites = str(Websites.objects.count() + ChildDomains.objects.count())
## Deleting master domain
website = Websites.objects.get(domain=websiteName)
websiteOwner = website.admin
if admin.websites_set.all().count() == 0:
websiteOwner.delete()
## Deleting master domain
numberOfWebsites = str(Websites.objects.count() + ChildDomains.objects.count())
execPath = "sudo python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
execPath = execPath + " deleteVirtualHostConfigurations --virtualHostName " + websiteName + \
@@ -246,7 +247,6 @@ def deleteWebsite(request):
json_data = json.dumps(data_ret)
return HttpResponse(json_data)
def submitWebsiteStatus(request):
try:
if request.method == 'POST':