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...
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...
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',...
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_...
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...
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.
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...
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...
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...