Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Commit

Permalink
Tip \#1: «Don’t put project name in the imports»
Browse files Browse the repository at this point in the history
  • Loading branch information
gdetrez committed Nov 2, 2011
1 parent 7cb96f9 commit 140df2e
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/people/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from myconf.apps.people.models import Person
from people.models import Person
from django.contrib import admin

class PersonAdmin(admin.ModelAdmin):
Expand Down
2 changes: 1 addition & 1 deletion apps/people/management/commands/exportspeakers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from apps.people.models import Person
from people.models import Person
try:
import json
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion apps/people/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from django.http import HttpResponse
from django.template import RequestContext, loader
from myconf.apps.people.models import Person
from people.models import Person
from django.shortcuts import render_to_response, get_object_or_404

def staff(request):
Expand Down
2 changes: 1 addition & 1 deletion apps/restaurants/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from myconf.apps.restaurants.models import *
from restaurants.models import *
from django.contrib import admin

def opening_times_list(r):
Expand Down
2 changes: 1 addition & 1 deletion apps/restaurants/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from django.http import HttpResponse
from django.template import RequestContext, loader
from myconf.apps.restaurants.models import Restaurant
from restaurants.models import Restaurant

def list(request):
rests = Restaurant.objects.all().order_by("distance")
Expand Down
4 changes: 2 additions & 2 deletions apps/schedule/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from myconf.apps.schedule.models import *
from schedule.models import *
from django.contrib import admin
from myconf.apps.people.models import Person
from people.models import Person

class TimeSlotAdmin(admin.ModelAdmin):
list_display = ('day', 'begin_time', 'end_time', 'duration')
Expand Down
4 changes: 2 additions & 2 deletions apps/schedule/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from django.template.defaultfilters import date
from django.conf import settings
from django.contrib.auth.models import User
from myconf.apps.people.models import Person
from myconf.apps.colors.fields import ColorField
from people.models import Person
from colors.fields import ColorField
from taggit.managers import TaggableManager

now = datetime.now
Expand Down
2 changes: 1 addition & 1 deletion apps/schedule/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from django.http import HttpResponse
from django.shortcuts import render_to_response, get_object_or_404
from django.template import loader, RequestContext
from myconf.apps.schedule.models import *
from schedule.models import *
from taggit.models import Tag

#@login_required(login_url='/admin/')
Expand Down
2 changes: 1 addition & 1 deletion apps/signup/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from django.contrib import admin
from myconf.apps.signup.models import *
from signup.models import *


class SessionSignupAdmin(admin.ModelAdmin):
Expand Down
4 changes: 2 additions & 2 deletions apps/signup/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.forms import ModelForm
from myconf.apps.signup.models import SessionSignup
from myconf.apps.schedule.models import Session
from signup.models import SessionSignup
from schedule.models import Session
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response, get_object_or_404
from django.template import loader, RequestContext
Expand Down

0 comments on commit 140df2e

Please sign in to comment.