Questions tagged as 'django'

1
answer

Set CLASSPATH to be accessible in Apache

How can I make the environment variable CLASSPATH accessible by apache? I have a Django project that uses the python-weka-wrapper library that bridges Weka's Java implementation. Everything works perfectly on the Django devel...
asked by 08.09.2017 / 18:37
0
answers

How to block user login with certain status in Django

I'm using Django 1.11 and views based on classes. My user model is customized and it has a "status" field where it has "enabled, blocked and disabled". I would like to know how I can only allow users to log in and the others are barred. It's...
asked by 08.08.2017 / 21:01
1
answer

Widget Select in Django does not appear in form

My signup page is not showing up the selection fields, my code is as follows: forms.py class InscricaoForm(forms.Form): VINCULO = [ (u'b', u'Bolsista'), (u'e', u'Estagiário'), (u't', u'Terceiro'), (u's',...
asked by 03.08.2017 / 15:49
0
answers

Error in Django - Unicode Decode Error

When trying to create an App in Django with the command django-admin.py startapp Name , this command raises the following error: Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_...
asked by 12.07.2017 / 19:54
0
answers

Error starting django

When trying to start the project in django 1.9.5, it gives this error: Unhandled exception in thread started by <function wrapper at 0x7fb7346bfc08> Traceback (most recent call last): File "/.virtualenvs/api/local/lib/python2.7/site-pac...
asked by 13.07.2017 / 00:08
0
answers

django-admin command startproject does not create manage.py file

After running the command django-admin startproject the manage.py file is not created. I'm using python 2.7.12 I tested with the versions of django-1.4.3 and django 1.5.1.
asked by 10.07.2017 / 23:16
1
answer

'Media' object has no attribute 'get_absolute_url'

Has anyone had this problem yet? AttributeError at / midia / create / MODELS: from django.db import models from django.core.urlresolvers import reverse from django.utils.text import slugify class Midia(models.Model): analista = model...
asked by 11.07.2017 / 17:00
0
answers

Background execution with Django Python

I have a web based system in Django (Python). In this app I need to show some dynamic values coming from a remote device, in which I need to make some requests every 2 minutes to log the values in the database and generate some of these tips as...
asked by 23.06.2017 / 19:12
1
answer

Make custom select on DJANGO

model.py class Produto(models.Model): nome=models.CharField('nome', max_length=100) marca=models.CharField('nome', max_length=100) categ=models.ForeignKey(Produto, verbose_name='Produto') class Categ(models.Model): cate...
asked by 22.06.2017 / 21:42
0
answers

Is giving error ImportError at / post / new / No module named 'blog.forms'

In this line: C: \ Users \ Fer Gomes \ djangogirls \ mysite \ blog \ views.py in, line 5 the code from django.shortcuts import render from django.utils import timezone from .models import Post from django.shortcuts import render, get_object_or...
asked by 22.06.2017 / 06:05