summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
Diffstat (limited to 'website')
-rw-r--r--website/models.py2
-rw-r--r--website/views.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/website/models.py b/website/models.py
index f5b004a..06a84ac 100644
--- a/website/models.py
+++ b/website/models.py
@@ -31,7 +31,7 @@ def get_document_dir(instance, filename):
# ename, eext = instance.user.email.split("@")
fname, fext = os.path.splitext(filename)
# print "----------------->",instance.user
- return '%s/attachment/%s/%s.%s' % (instance.user, instance.proposal_type, fname+'_'+str(instance.user), fext)
+ return 'paper_uploads/%s/attachment/%s/%s.%s' % (instance.user, instance.proposal_type, fname+'_'+str(instance.user), fext)
class Proposal(models.Model):
diff --git a/website/views.py b/website/views.py
index 444c8f9..cd83f74 100644
--- a/website/views.py
+++ b/website/views.py
@@ -170,7 +170,7 @@ def view_abstracts(request):
def user_login(request):
user = request.user
if request.user.is_authenticated:
- return redirect('/proposal/')
+ return redirect('/nccps-2018/proposal/')
else:
if request.method == "POST":
context = {}
@@ -183,7 +183,7 @@ def user_login(request):
login(request, user)
proposals = Proposal.objects.filter(user=request.user).count()
context['user'] = user
- return redirect('/proposal')
+ return redirect('/nccps-2018/proposal')
#template = loader.get_template('index.html')
#return render(request, 'index.html', context)
else:
@@ -957,14 +957,14 @@ def user_register(request):
return render(request, 'view-profile.html')
else:
if request.user.is_authenticated:
- return redirect('/view_profile/')
+ return redirect('/nccps-2018/view_profile/')
return render(
request, "user-register.html",
{"form": form}
)
else:
if request.user.is_authenticated and is_email_checked(request.user):
- return redirect('/view_profile/')
+ return redirect('/nccps-2018/view_profile/')
elif request.user.is_authenticated:
return render(request, 'activation.html')
form = UserRegistrationForm()