Commit f9ee1dac authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added comments to imports in core app

parent 4f5d960f
# core django imports
from django.contrib import admin
# imports from your apps
from .models import Student, Course
admin.site.register(Student)
......
from django.contrib.auth.models import User
# core django imports
from django.conf import settings
from .models import Student
from django.contrib.auth.models import User
# third-part imports
import requests
# imports from your apps
from .models import Student
def pfinfo(u_name):
......
# core django imports
from django.db import models
from django.contrib.auth.models import User
from autoslug import AutoSlugField
from model_utils.models import TimeStampedModel
#from django.core.validators import RegexValidator
from django.core.urlresolvers import reverse
# third-party imports
from autoslug import AutoSlugField
from model_utils.models import TimeStampedModel
class Student(TimeStampedModel):
user = models.OneToOneField(User)
# django user includes username, password, first name, and last name
# implement ratings later
#rating = models.IntegerField(null=True, default=0)
user = models.OneToOneField(User)
slug = AutoSlugField(populate_from='user', unique=True)
......
# core django imports
from django.conf.urls import patterns, url
from core.views import DetailStudent, StudentRatings
# imports from your apps
from .views import DetailStudent, StudentRatings
urlpatterns = patterns('',
url(r'^(?P<slug>[\w-]+)/$',
......
# core django imports
from django.views.generic import DetailView
# third-party imports
from braces.views import LoginRequiredMixin
from core.models import Student
# imports from your apps
from .models import Student
from lookouts.models import Lookout
from trades.models import Listing, Bid, Rating
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment