python manage.py runserver is throwing error in windows

2019-01-16 Thread Imran
Hi,

I have installed Django 1.11.7 in my windows 7 machine. I am getting the 
following error when i run python manage.py runserver. Is there a 
workaround to fix it?

Unhandled exception in thread started by .wrapper
 at 0x033EA9C0>
Traceback (most recent call last):
  File 
"C:\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line 
228, in wrapper
fn(*args, **kwargs)
  File 
"C:\Python\Python37-32\lib\site-packages\django\core\management\commands\runserver.py",
 
line 117, in inner_run
autoreload.raise_last_exception()
  File 
"C:\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", 
line 251, in raise_last_exception
six.reraise(*_exception)
  File "C:\Python\Python37-32\lib\site-packages\django\utils\six.py", line 
685, in reraise
raise value.with_traceback(tb)
  File 
"C:\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line 
228, in wrapper
fn(*args, **kwargs)
  File "C:\Python\Python37-32\lib\site-packages\django\__init__.py", line 
27, in setup
apps.populate(settings.INSTALLED_APPS)
  File "C:\Python\Python37-32\lib\site-packages\django\apps\registry.py", 
line 85, in populate
app_config = AppConfig.create(entry)
  File "C:\Python\Python37-32\lib\site-packages\django\apps\config.py", 
line 94, in create
module = import_module(entry)
  File "C:\Python\Python37-32\lib\importlib\__init__.py", line 127, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1006, in _gcd_import
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 677, in _load_unlocked
  File "", line 728, in exec_module
  File "", line 219, in 
_call_with_frames_removed
  File 
"C:\Python\Python37-32\lib\site-packages\django\contrib\admin\__init__.py", 
line 4, in 
from django.contrib.admin.filters import (
  File 
"C:\Python\Python37-32\lib\site-packages\django\contrib\admin\filters.py", 
line 10, in 
from django.contrib.admin.options import IncorrectLookupParameters
  File 
"C:\Python\Python37-32\lib\site-packages\django\contrib\admin\options.py", 
line 12, in 
from django.contrib.admin import helpers, widgets
  File 
"C:\Python\Python37-32\lib\site-packages\django\contrib\admin\widgets.py", 
line 151
'%s=%s' % (k, v) for k, v in params.items(),
^
SyntaxError: Generator expression must be parenthesized

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bdded2a4-f7fc-4fb3-9b97-4e6acbcee621%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Intregration Of on form submit user recive a sms in his phone

2018-07-31 Thread imran
How to impement this feature Intregration Of on form submit user recive a 
sms in his phone.

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/aaa81e20-506b-4ac5-8767-c6e12b0b8b13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to write api for sms intregartion in django I am new in django?

2018-08-01 Thread imran
I want to write a api when form submit a sms should go to the phone, I 
don't know how to do that can somone help me regarding this?

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/253c999f-2151-4b42-8bd9-f7288f57c394%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to write api for sms intregartion in django I am new in django?

2018-08-01 Thread imran
I want to write api how to write can you help me?

On Wednesday, August 1, 2018 at 12:47:55 PM UTC+5:30, Tim Vogt wrote:
>
>
> https://www.twilio.com/blog/2014/04/building-a-simple-sms-message-application-with-twilio-and-django-2.html
>
>
> Op 1 aug. 2018, om 09:15 heeft im...@wsegames.com  het 
> volgende geschreven:
>
> I want to write a api when form submit a sms should go to the phone, I 
> don't know how to do that can somone help me regarding this?
>
> -- 
> 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...@googlegroups.com .
> To post to this group, send email to django...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/253c999f-2151-4b42-8bd9-f7288f57c394%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dd0204e8-170a-4c52-b920-1a2e57477a40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to write api for sms intregartion in django I am new in django?

2018-08-01 Thread imran
Here is my code


class RegisterView(CreateView):
form_class = RegisterForm
template_name = 'accounts/register.html'
success_url = '/success-membership/'

def form_valid(self, form):
url = "http://enterprise.smsgupshup.com/GatewayAPI/rest";
payload = 
"method=sendMessage&send_to=XX&msg=new&msg_type=TEXT&userid=X&auth_scheme=PLAIN&password=X&format=TEXT"
response = requests.request("POST", url, data=payload)
print(response.text)
return HttpResponse(response)


On Wednesday, August 1, 2018 at 12:47:55 PM UTC+5:30, Tim Vogt wrote:
>
>
> https://www.twilio.com/blog/2014/04/building-a-simple-sms-message-application-with-twilio-and-django-2.html
>
>
> Op 1 aug. 2018, om 09:15 heeft im...@wsegames.com  het 
> volgende geschreven:
>
> I want to write a api when form submit a sms should go to the phone, I 
> don't know how to do that can somone help me regarding this?
>
> -- 
> 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...@googlegroups.com .
> To post to this group, send email to django...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/253c999f-2151-4b42-8bd9-f7288f57c394%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2d3b91f8-1636-4625-85b5-40699401c3e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to write api for sms intregartion in django I am new in django?

2018-08-01 Thread imran
I just want to test other wise I can load the data dynamically

On Wednesday, August 1, 2018 at 1:06:12 PM UTC+5:30, Mark Caglienzi wrote:
>
> On Wed, 2018-08-01 at 00:26 -0700, im...@wsegames.com  
> wrote: 
> > Here is my code 
> > 
> > 
> > class RegisterView(CreateView): 
> > form_class = RegisterForm 
> > template_name = 'accounts/register.html' 
> > success_url = '/success-membership/' 
> > 
> > def form_valid(self, form): 
> > url = "http://enterprise.smsgupshup.com/GatewayAPI/rest"; 
> > payload = 
> "method=sendMessage&send_to=XX&msg=new&msg_type=TEXT&userid=X&auth_scheme=PLAIN&password=X&format=TEXT"
>  
>
> > response = requests.request("POST", url, data=payload) 
> > print(response.text) 
> > return HttpResponse(response) 
>
> Well, apart from everything, making a request with user and password in 
> the clear 
> it's not a good idea at all. 
>
>

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/696d26a6-0922-47e3-8ee6-f11f50c22f36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django Session timeout limit clarification

2012-01-27 Thread Imran Azad
I just want to clarify session timeout in Django. The default timeout
is two weeks, if a user keeps on accessing a website within the two
weeks, will it ever expire? I'm assuming that each time a user
accesses the website the session timeout resets back to two weeks, is
this correct?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



attribute error

2018-08-28 Thread Imran Sharief
hi every one i am new to django am getting attribute error past from 2 days 
i got stuck in this error only i have attached the file also plz do help me 
to resolve this error

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ccbece42-238d-411b-854d-e279b9dcb682%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.