Hi guys,
i am working on user CRUD.
I am using one form for user creation and update. When user is initially
created it is ok to perform password validation - users must have password,
but in my edit form i want to have a logic like: when nothing is entered
don't do anything, when user enters
Thanks man! I did not see your post in time so i did this in clean method.
This is a bit of a hack, your way is much cleaner. Thanks one more time!
def clean(self):
super(UserForm, self).clean()
if self.instance.pk:
password = self.cleaned_data.get("password")
Hi everyone,
I have a problem. For the past few days i have been looking for some good
SOAP client library and i did not found anything that works properly. The
problem is that i have some recursive SOAP function and as i saw, suds has
the problem with this types of things, some other libraries
I actually need a client library, not server library.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this
Hi guys,
I have a question. I am working on an application that i can use as a
starting point for my future projects.
I have a core application that has CommonFields abstract model defined as:
from django.db import models
from django.contrib.auth.models import User
class CommonFields(models.Mo
Hi guys,
I would like to have dynamic query. For example i have a query like:
rows_list = model_object.objects.not_deleted()
query = Q(name__contains=search_term)
query |= Q(equipment_manufacturer__name__contains=search_term)
rows_list = rows_list.filter(query)
I
Hi guys,
I have a question. I have a a code like this:
where model_object is an instance of an Model.
for field in model_object._meta.fields:
field_type = type(field)
if field_type is not AutoField and \
field.name != "created" and \
Thanks Tom,
I deleted my question because i find an answer in the meantime. I am having
a problem with ForeignKey values, it would be cool to search trough them.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group a
Hi everybody,
I have a question. I am working on a series of small home apps for me and
my family.
I have application like:
- cost management - application where i track all my income and costs
- market research - application that i use for market researc
- food management - applicatio
te:
>
> Hi,
>
> Am Mon, 16 Mar 2015 01:23:22 -0700 (PDT)
> schrieb Domagoj Kovač >:
> > I would like to have separate databases for every application
> > including user management.
>
> I can think of:
>
> (a) You put all the application in the same database
Hi Guys,
I have a problem. I have web application that supposed to have two logins,
one for admin other for regular users. Inside my backend i am using
@user_passes_test decorator to allow access only to admins.
This is my code:
my_view
> from django.core.urlresolvers import reverse
> from d
Hi Guys,
I have a problem, i have url
like: http://127.0.0.1:8000/get-file?file_path=/home/domagoj/pcap/#1/test.txt
where file_path is path to the file
both
requestGET["file_path"] and
request.get_full_path()
ignore #1/test.txt part, how can i fix this? Is there some other way to get
full ur
Hi Guys,
I have a model called Calculation, this model has fields that are
calculated and saved to the database, this model also hold some common
calculation functions.
I also have two other classes TrailerCalculation and TruckCalculation they
both calculate values of the fields that will be s
I did not try that, and i don't think this would help. Separation to more
files doesn't have anything to do with the way works, theoretically your
whole code can be just one file.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe
Thanks Tom, this looks like something that can help me. Thanks!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To pos
Thanks Havier,
Proxy models also look like something that fit my needs.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.c
Hi everybody,
I have a problem. In my settings i have:
INSTALLED_APPS = (
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.sites',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> # Uncomment the ne
Thanks Tom, i thought something like this has happened.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to thi
Hi guys,
I extended base user model with certain fields. My code is as follows:
#!/usr/bin/env python
> # -*- coding: utf-8 -*-
> from django.utils import timezone
> from django.conf import settings
> from django.contrib.auth.backends import ModelBackend
> from django.core.exceptions import Impro
I already know about SESSION_COOKIE_AGE. I set it to be 30 minutes, but the
problem is that even if i am doing something system logs me out, and this
should not happen. It work properly before i implemented custom auth
backend.
--
You received this message because you are subscribed to the Goo
Hi Everybody,
I have a question. Lets say i have two routes routes like this:
url(r'^(?P[\w-]+)/$', views.view_article_category,
name="article-category"),
url(r'^(?P[\w-]+)/$', views.view_product_category,
name="product-category"),
Lets say that i have a article_category called news and prod
I must admin my second example is not that valid.
Because i would actually do it like this:
1. on /about-us route - display about us page
2. on /news/ route - display news list page - list pages would finish with
the slash - so i would not have that problem. But lets say there is not
slash on ne
Yes, you are right. Sometimes i get the idea in my head that after some
thought actually does not make sense :). I would just add product prefix,
this is a good solution.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from thi
23 matches
Mail list logo