Questions tagged as 'django'

3
answers

How to start a Django project using virtualenv?

I have already tried and found different ways and different conventions for creating a project in Django using virtual environment (virtualenv). Is there any standard for this? Does anyone help me with a correct step by step? Using python 2.7...
asked by 15.09.2015 / 04:23
1
answer

Queryset in django without case-sensitive

I have a question about Querysets in Django. I need to do a search on a field that is a Charfield, but the search I'm doing appears to be case sensitive. And I wanted that when looking for 'Stack' the search would return a field that is 'stac...
asked by 29.05.2015 / 03:17
1
answer

Single Email field in Django User model

I have a system that has a user registry and I'm using the lib django.contrib.auth.models to do this registration. But I I need the email field of this model to be unique. from django.db import models from django.contrib.auth.models imp...
asked by 13.04.2015 / 20:29
1
answer

POST via Ajax with Django

Based on link I'm trying to do a POST via Ajax using Django. Dai I created a project in GitHub link #urls.py url(r'^customer/add$', 'core.views.customer_add', name='customer_add'), url(r'^customer/save$', 'core.views.customer_sa...
asked by 22.11.2015 / 02:43
2
answers

Does NetBeans support Django?

I installed NetBeans and the python plugins . Everything worked fine, but I found the one that did not happen. This plugin alone would already support Django. I saw on this blog the author saying that I like NetBeans also for Django,...
asked by 27.04.2015 / 06:15
1
answer

Understanding the permissions system of Django 1.7

I have an app called forms_and_models that I use for study. In the Django 1.7 documentation says:    Assuming you have an application whose app_label is foo and a template called Bar , to test basic permissions, you should use: to...
asked by 01.03.2015 / 14:54
1
answer

What is the best way to split a Django project into apps?

I'm doing a project as a study to apply what I've learned so far with Django. My question is: what is the best way to target the project in apps ? If you want to give an example so that something empirical is captured, let's say the project is...
asked by 12.03.2015 / 22:30
2
answers

Concatenating variables in the Django template

Talk to people, good morning, I have a problem. I'm running a lista but I want concatenar my list that I'm calling in template as {{ list }} and {{ forloop.counter0 }} so that in my is only displayed 1 l...
asked by 05.10.2018 / 17:05
2
answers

Problems saving data in form-model django

Sirs, good afternoon! I'm having a little problem, I made some changes to an application that I'm developing for studies. I come across the following, fill in the form all right and when I give a save, nothing happens, does not redirect to the l...
asked by 11.09.2014 / 16:35
1
answer

Error running tests with proxy models in Django

I have a Seller table. link class Seller(Employee): objects = SellerManager() class Meta: proxy = True verbose_name = 'vendedor' verbose_name_plural = 'vendedores' def __str__(self): return self.username She is a p...
asked by 29.05.2016 / 18:05