-2
votes
0answers
6 views

Is any GUI enviroment for django(MVC) with python like web2py

I have limited time to learn django so i need any GUI enviroment to work me better, like web2py... In the django MVC every task perform in cmd.
0
votes
0answers
8 views

How to fetch the records of last 7 days from today's date using Pingdom API?

I am new to use pingdom API to check prototype status information about my site.I am making a project in django and able to get every information using pindom library Question: How to extract ...
0
votes
2answers
24 views

Django can't load template

I've tried this several ways with no luck. If I try to render my view like this: from django.shortcuts import render from django.template import loader def index(request): render(request, ...
1
vote
1answer
27 views

Which is faster: using django database order_by or list sort?

I have a Django model with score and quizzes_done. I want to calculate percentiles on both scores and quizzes_done. To do that, I need to create two sorted lists. For the first one, I do: s_recs = ...
0
votes
1answer
30 views

Packages installed by `pip install -r requirements.txt` are not found

I'm trying to run an inherited Django project. I've set up a virtualenv and tried to pass in the requirements file via pip install -r requirements.txt. Everything seems to work. It tells me it's ...
1
vote
1answer
25 views

Is it possible to add a datetime column to a manytomany field?

I was wondering if there was a way to add a datetime auto_now_add=True column to a manytomany field. I have the following model. class Photographer(models.Model): user = ...
0
votes
1answer
29 views

i18n_patterns: How come some user are accessing /en-us/ where what I have is /en/

I am using i18n_patterns for my URL and yesterday when I launched the live site I noticed through Google Analytics many people are accessing http://www.example.com/en-us/ instead of ...
2
votes
1answer
33 views

How to embed the results of my django app inside a template using something like {% include “app” %}?

I am quite new to Django so please bare with me. So far I have been able to Create a project and setup a Homepage. So far I have had success with styling the page and getting my nav areas setup. I ...
0
votes
1answer
27 views

Running django standalone scripts in the crontab destroys any import commands related to django

I have tried many many solutions to fixing this, including using django's custom management commands, python scripts with path configuration and setting the DJANGO_ENV_VAR, etc. Everything breaks when ...
2
votes
0answers
17 views

How to index Django models into whoosh

I am trying to index my Django models into Whoosh.In this tutorial they are simply indexing text using content field but how do i index my Django model in such a way ... My models.py import json ...
0
votes
1answer
17 views

PDF, Django, qr-ode, reportlab

I use python-qrcode and reportlab, I want to generate a qrcode and display it without saving it as an image. def member_card(request): response = HttpResponse(content_type='application/pdf') ...
1
vote
1answer
18 views

Trigger An Action Based on value change of DateTimeField in Django

I would like to fire an event immediately at/after a certain DateTimeField in a certain model equals the value of datetime.now(). It is a field that marks expiration of a product, so as soon as it ...
1
vote
4answers
55 views

simplejson returns values not in order

When working with simplejson in Django, I sometimes need to send the information strictly in order. values = {"entry1":"value1","entry2":"value2","entry3":"value3"} return ...
0
votes
3answers
41 views

NameError: global name 'choice_text' is not defined

I am a beginner to Django. The following code is from the tutorial on the Django official site: from django.db import models from django.utils import timezone import datetime class ...
1
vote
1answer
20 views

convert database object to string in django

models.py class UserProfile(models.Model): user = models.OneToOneField(User) security_question = models.CharField('Question', max_length=255, null=True, blank=True) security_answer = ...

1 2 3 4 5 1481
15 30 50 per page