Would there be any issues with creating a single file contains common 
django modules I use, then importing that file into my views, models etc.
Example:

common_imports.py
===============
from django.conf import settings
from django.core.urlresolvers import reverse
from django.shortcuts import render_to_response
....


Then in any other file I need to import django stuff into, I just import my 
common_imports.py

views.py
=======
from my_project.common_imports import *


This saves me from having to retype all the django imports repeatedly atop 
my files. That and I can never remember the paths so I'm always hitting the 
docs looking up where to import stuff from.

I'm just looking for the downside of this pattern.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/0Xw45PHZBkAJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to