Hellow..
I have a problem on django signal and instances.
i have a right some code that runs a function after a certain model is
created but could not use the instace filter
Help
def send_sms_notifications(sender, instance, created, **kwargs): #get
sender, instance, created
# TODO: Lookup the
The MeasuredValue gets saved after the sample is saved, Is there another way
to still use the sample instance (or force it to save ), Cause the function (
to send msg ) to should be sent only when the sample is created..
Any help will be appriciated.
thnx greatlemer
--
You received this mes
you can try looking-up on pinax apps.. and put it on ur project..
check out (might give you some light )
http://groups.google.com/group/pinax-users/browse_thread/thread/6ea6b0d5f79a69ac/ee84295138dc3e58?lnk=gst&q=wsgi#ee84295138dc3e58
Allen M.,
On 5/16/10, Dexter wrote:
> I don't know, but I gue
search_string = req.REQUEST.get("search", "")
query = Model1.objects
if search_string == "":
query = query.all()
else:
query = query.filter(
Q(text_field__icontains=search_string) |
Q(fek_field__text_field__icontains=search_string))
the query var
search_string = req.REQUEST.get("search", "")
query = Model1.objects
if search_string == "":
query = query.all()
else:
query = query.filter(
Q(text_field__icontains=search_string) |
Q(fek_field__text_field__icontains=search_string))
the query var
Hi All,
i have a problem in import problem. in importing forms.py in views.py
here are my files both located in smsnotifications app
-- smsnotifications/forms.py
from django.forms import ModelForm
from smsnotifications.models import SmsNotification
class SmsNotificationForm(ModelForm):
class M
anyone with any idea on this..?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For mor
Hi Eduan
I looks like you have not added your polls app in the Settings.py
file.
Open your setting.py file
find the installed apps.. which will look something like this.
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contr
Sorry on that..
No i have not imported smsnotification.forms in the smsnotification model.
i have from smsnotifications.forms import SmsNotificationForm in the views
I further tried to import the smsnotifications.forms import
SmsNotificationForm in the django shell it worked okey.
but importing vi
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.3 pre-alpha
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.gis',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admi
10 matches
Mail list logo