Re: Caught ViewDoesNotExist while rendering: Could not import smsnotifications.views. Error was: No module named forms

2010-06-28 Thread Allen Machary
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',

Re: Caught ViewDoesNotExist while rendering: Could not import smsnotifications.views. Error was: No module named forms

2010-06-28 Thread Allen Machary
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

Re: Djangoprojects tutorial

2010-06-28 Thread Allen Machary
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',

Re: Caught ViewDoesNotExist while rendering: Could not import smsnotifications.views. Error was: No module named forms

2010-06-28 Thread Allen Machary
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

Caught ViewDoesNotExist while rendering: Could not import smsnotifications.views. Error was: No module named forms

2010-06-27 Thread Allen Machary
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

Re: Django Sphinx Foreign key search

2010-05-22 Thread Allen Machary
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

Re: Django Sphinx Foreign key search

2010-05-22 Thread Allen Machary
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

Re: One to One chat like Facebook?

2010-05-16 Thread Allen Machary
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=wsgi#ee84295138dc3e58 Allen M., On 5/16/10, Dexter wrote: > I

Re: django signal and instace..... HELP!!

2010-04-22 Thread Allen Machary
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

django signal and instace..... HELP!!

2010-04-20 Thread Allen Machary
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