Django

add news feed

post a story

views.py @login_requireddef export_csv(request): user = request.user # heading columns headerrow = ['Filename', 'Description','Notes other','Reporter Name'] allrows = [] today = datetime.datetime.tod...
views.py @login_requireddef export_csv(request): user = request.user # heading columns headerrow = ['Filename', 'Description','Notes other','Reporter Name'] allrows = [] today = datetime.datetime.today() # default to show today reports = Report.objects.filter(user=use r) reports = reports.filter(created_date_ti me__year=today.year)
about 3 hours ago
???? iPhone ? 2013-6-16?21:42?django-users@g ooglegroups.com ???
???? iPhone ? 2013-6-16?21:42?django-users@g ooglegroups.com ???
about 4 hours ago
Per the docs for Django 1.5, I have attempted to broaden the range of data held in the default user model by making an extended user model with the AbstractUser class. I made the model (called "Client") and listed it in settings.py as...
Per the docs for Django 1.5, I have attempted to broaden the range of data held in the default user model by making an extended user model with the AbstractUser class. I made the model (called "Client") and listed it in settings.py as the AUTH_USER_MODEL. Syncdb took it and it worked great. Specifically, syncdb made a new MySQL table with all the default user
about 4 hours ago
bohio [link] eric woodworth wtg
bohio [link] eric woodworth wtg
about 6 hours ago
Suppose you have two models A and B. The models have lots of large text/json fields and other heavy data. Your view is showing some list of B.select_related(A), however, it is using just few lightweight fields. You want to defer all heav...
Suppose you have two models A and B. The models have lots of large text/json fields and other heavy data. Your view is showing some list of B.select_related(A), however, it is using just few lightweight fields. You want to defer all heavyweight fields in order to offload ...
about 10 hours ago
Hey all, I'm just beginning to look into using django for a personal project. What I'm wondering is if there are any plugins available or guides which could help achieve the following functionality. I want to develop a websit...
Hey all, I'm just beginning to look into using django for a personal project. What I'm wondering is if there are any plugins available or guides which could help achieve the following functionality. I want to develop a website with 'sub-sites'/user groups which users may create and join. These groups should be private and only accessible to
about 13 hours ago
I have this Web application made in Django 1.3. And now when I use it on Django 1.5, it does not work. It give error as no module simple. So, Is there any migration tool to make my application work easily on 1.5 version without manual...
I have this Web application made in Django 1.3. And now when I use it on Django 1.5, it does not work. It give error as no module simple. So, Is there any migration tool to make my application work easily on 1.5 version without manually making lot of changes? You help will be appreciated. --
about 22 hours ago
Fairly new to the framework and have been reading a ton of material. While I have found a couple of great git repos using Bootstrap with Django, I haven't found too many examples of dead simple sites other than some single page bl...
Fairly new to the framework and have been reading a ton of material. While I have found a couple of great git repos using Bootstrap with Django, I haven't found too many examples of dead simple sites other than some single page blogs. I am working on an informational site with at most 5 pages and potentially a blog down the road for a customer (thinking S3,
1 day ago
Hi, I am sorry if this is the wrong place to ask this question. But basically, I would like to create social bookmarking site in Django. That is why I have this question "How do I create a png image of a website given url". Would an...
Hi, I am sorry if this is the wrong place to ask this question. But basically, I would like to create social bookmarking site in Django. That is why I have this question "How do I create a png image of a website given url". Would anyone give me a pointer as to how I can do this? Thanks for your time in advance.
1 day ago
Hello Dear Django Group. My first day with Django, I just got it installed on my computer, and am trying to follow along with the first tutorial: [link] I have Django's development server up, and I'm able to see the "It worke...
Hello Dear Django Group. My first day with Django, I just got it installed on my computer, and am trying to follow along with the first tutorial: [link] I have Django's development server up, and I'm able to see the "It worked!" Django welcome page. Where I ran into the dead end is at the following
1 day ago