Skip to content

Commit b60c858

Browse files
committed
staging for user profiles
1 parent c6e6184 commit b60c858

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

logic/database.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pymongo
2-
from pymongo import MongoClient
32
from django.conf import settings
3+
from pymongo import MongoClient
44

55
client = MongoClient(settings.MONGO_URI)
6-
db = client.bookmarked
6+
db = client.bookmarked

logic/views.py

+3
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,6 @@ def edit_label(request):
173173
db.bookmarks.update({"label": old_name},{"$set": {'label': new_name}}, multi=True)
174174
db.labels.update({"unique_id": unique_id}, {"$set": {'name': new_name}})
175175
return redirect("index")
176+
177+
# def check_user(request):
178+

requirements2.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Django==1.11.15
2+
pymongo==3.7.1
3+
pytz==2018.5

templates/404.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% extends "base.html" %} {% block content %}
2+
<center><h4>URL not found!! A 404 error</h4></center>
3+
{% endblock %}

0 commit comments

Comments
 (0)