Re: Deployment on Heroku

2019-03-25 Thread Ahmed Ishtiaque
>From the looks of it, it seems that in your procfile you need to point to
the *exact* location gunicorn is installed in. So this could be somewhere
like ~/.local/lib/pythonx.y/site-packages/gunicorn directory on your heroku
instance (if it’s a Linux filesystem... I don’t remember what heroku uses
exactly).

Also yes, always use environment variables to import your passwords,
security keys etc. in deployment.

On Mon, Mar 25, 2019 at 3:07 AM Aakash Baranwal 
wrote:

> Hi, I am Aakash. I have been working on a project which i want to deploy
> on heroku, but i have been facing some issues. I searched for solutions on
> the internet but none of them helped me.
>
> I, request you to kindly help me with the deployment.
>
> Pfa the settings.py, asgi.py , wsgi.py , Procfile.
> Also, please check line no 34 in settings.py for the EMAIL_HOST_PASSWORD,
> if I am doing it the right way or it should be done as commented in the
> same line after the code.
>
> As you will see in the terminal, it says Starting ASGI channels, so do i
> need the wsgi.py file anymore or should i run it with WSGI instead of ASGI?
>
> When I push it into the heroku server and run the application, it does not
> run and in the heroku logs the error which it shows is :
>
>  at=error code=H10 desc="App crashed" method=GET path="/" host=
> vibex.herokuapp.com request_id=3211546f-5081-4233-b016-428493e611c1
> fwd="139.167.172.83" dyno= connect= service= status=503 bytes= protocol=http
>
> and it also shows  bash: gunicorn: command not found
> which I have installed on my computer as well as by using heroku run pip
> install gunicorn.
>
> I shall be extremely thankful for your help.
>
> Thanks in advance
>
> With Kind Regards
> Aakash
>
> --
> 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/CALr9hQ12oZ4C1L6BtYyPGbQuwrezaeWzd8x9JkLXE8jM80nM5A%40mail.gmail.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/CAKizqR6PP%2BROesNLjjXLWfX%3Dz8FdL4NJXqTpDtNzrkesYRYcsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


SMMP sms sending

2019-03-25 Thread mazz ahmed
Hi everyone,
I am using smpplib python library for sending SMS but I am not able to send
the message. When I am using the bind_transmitter it gives me invalid
sys_id. But When i used bind_transceiver I am connected to the server and
able to send the message but the message is not delivered to client number.
If anybody worked on smpplib please let me know.
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 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/CABuXbh9s0%3DLVA8AUBOrSMvwExWNmKfACCvp1ioTCgUhVVvrtWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Performing SQL queries on SQLite database

2019-03-25 Thread carl collins
Hello,
 Please I need advice on how I can go on with this.
Thanks

On Sat, Mar 23, 2019 at 8:26 PM carl collins 
wrote:

> Hello guys,
> I'm Carl Collins from Cameroon. I'm working on this Django Project and I
> got stuck . Need help.The first thing I   would love to ask is about
> performing SQL queries in Django use Django ORM. Presume I have something
> like this:
>
> connection = sqlite.connect('data.db')
> cursor = connection.cursor()
>
> query = "SELECT * FROM items"
> result = cursor.execute(query)
>
> properties = []
> for row in result:
> items.append({})
>
> connection.close()
> print(json.dumps({'properties': properties})
>
>
>
> I would love Django to run this automatically i.e fetch some field from
> the database each time a button is clicked  and do a post request to an API
> using the json returned as the body of the request
>
> NB: The data in the database is populated using a django form and I would
> love to use the same data to do a post request to an api. The API requires
> that the post body be in json format like
>
> {
> "currency": "",
> "customerName": "",
> "description": "",
> "email": "",
> "expiryDate": "",
> "id": {
> "uuid": "",
> "version": ""
> },
> "items": [
> {
> "itemId": "",
> "particulars": "",
> "quantity": x,
> "subTotal": y,
> "unitCost": z
> },
> {
> "itemId": " ",
> "particulars": " ",
> "quantity": j,
> "subTotal": k,
> "unitCost": l
> }
> ],
> "langKey": "en",
> "merchantReference": " ",
> "orderDate": " ",
> "phoneNumber": " ",
> "receiptUrl": " ",
> "totalAmount": n
> }
>
>
> Thanks in advance
> Cheers
> Carl
>

-- 
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/CAEPm0by6ejQ-8t%3D1obj0nLW-8YXTRj8JfaYksz08i7qfr-H2HA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deployment on Heroku

2019-03-25 Thread Christhian Jesus
Add gunicorn to requeriments.txt

On Mon, Mar 25, 2019 at 3:26 AM Ahmed Ishtiaque 
wrote:

> From the looks of it, it seems that in your procfile you need to point to
> the *exact* location gunicorn is installed in. So this could be somewhere
> like ~/.local/lib/pythonx.y/site-packages/gunicorn directory on your heroku
> instance (if it’s a Linux filesystem... I don’t remember what heroku uses
> exactly).
>
> Also yes, always use environment variables to import your passwords,
> security keys etc. in deployment.
>
> On Mon, Mar 25, 2019 at 3:07 AM Aakash Baranwal 
> wrote:
>
>> Hi, I am Aakash. I have been working on a project which i want to deploy
>> on heroku, but i have been facing some issues. I searched for solutions on
>> the internet but none of them helped me.
>>
>> I, request you to kindly help me with the deployment.
>>
>> Pfa the settings.py, asgi.py , wsgi.py , Procfile.
>> Also, please check line no 34 in settings.py for the EMAIL_HOST_PASSWORD,
>> if I am doing it the right way or it should be done as commented in the
>> same line after the code.
>>
>> As you will see in the terminal, it says Starting ASGI channels, so do i
>> need the wsgi.py file anymore or should i run it with WSGI instead of ASGI?
>>
>> When I push it into the heroku server and run the application, it does
>> not run and in the heroku logs the error which it shows is :
>>
>>  at=error code=H10 desc="App crashed" method=GET path="/" host=
>> vibex.herokuapp.com request_id=3211546f-5081-4233-b016-428493e611c1
>> fwd="139.167.172.83" dyno= connect= service= status=503 bytes= protocol=http
>>
>> and it also shows  bash: gunicorn: command not found
>> which I have installed on my computer as well as by using heroku run pip
>> install gunicorn.
>>
>> I shall be extremely thankful for your help.
>>
>> Thanks in advance
>>
>> With Kind Regards
>> Aakash
>>
>> --
>> 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/CALr9hQ12oZ4C1L6BtYyPGbQuwrezaeWzd8x9JkLXE8jM80nM5A%40mail.gmail.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/CAKizqR6PP%2BROesNLjjXLWfX%3Dz8FdL4NJXqTpDtNzrkesYRYcsw%40mail.gmail.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/CAMQeudrvzzkbS4-ghdG-pmsm2%3Dx7L%3DfY7q-myj_3uCBStYyw6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deployment on Heroku

2019-03-25 Thread Aakash Baranwal
Its already present there.

On Mon, Mar 25, 2019 at 1:23 PM Christhian Jesus 
wrote:

> Add gunicorn to requeriments.txt
>
> On Mon, Mar 25, 2019 at 3:26 AM Ahmed Ishtiaque 
> wrote:
>
>> From the looks of it, it seems that in your procfile you need to point to
>> the *exact* location gunicorn is installed in. So this could be somewhere
>> like ~/.local/lib/pythonx.y/site-packages/gunicorn directory on your heroku
>> instance (if it’s a Linux filesystem... I don’t remember what heroku uses
>> exactly).
>>
>> Also yes, always use environment variables to import your passwords,
>> security keys etc. in deployment.
>>
>> On Mon, Mar 25, 2019 at 3:07 AM Aakash Baranwal 
>> wrote:
>>
>>> Hi, I am Aakash. I have been working on a project which i want to deploy
>>> on heroku, but i have been facing some issues. I searched for solutions on
>>> the internet but none of them helped me.
>>>
>>> I, request you to kindly help me with the deployment.
>>>
>>> Pfa the settings.py, asgi.py , wsgi.py , Procfile.
>>> Also, please check line no 34 in settings.py for the
>>> EMAIL_HOST_PASSWORD, if I am doing it the right way or it should be done as
>>> commented in the same line after the code.
>>>
>>> As you will see in the terminal, it says Starting ASGI channels, so do i
>>> need the wsgi.py file anymore or should i run it with WSGI instead of ASGI?
>>>
>>> When I push it into the heroku server and run the application, it does
>>> not run and in the heroku logs the error which it shows is :
>>>
>>>  at=error code=H10 desc="App crashed" method=GET path="/" host=
>>> vibex.herokuapp.com request_id=3211546f-5081-4233-b016-428493e611c1
>>> fwd="139.167.172.83" dyno= connect= service= status=503 bytes= protocol=http
>>>
>>> and it also shows  bash: gunicorn: command not found
>>> which I have installed on my computer as well as by using heroku run pip
>>> install gunicorn.
>>>
>>> I shall be extremely thankful for your help.
>>>
>>> Thanks in advance
>>>
>>> With Kind Regards
>>> Aakash
>>>
>>> --
>>> 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/CALr9hQ12oZ4C1L6BtYyPGbQuwrezaeWzd8x9JkLXE8jM80nM5A%40mail.gmail.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/CAKizqR6PP%2BROesNLjjXLWfX%3Dz8FdL4NJXqTpDtNzrkesYRYcsw%40mail.gmail.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/CAMQeudrvzzkbS4-ghdG-pmsm2%3Dx7L%3DfY7q-myj_3uCBStYyw6w%40mail.gmail.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/CALr9hQ2bPF%3DZ-0UhGd4M%2BeSSP%2BL5U2J2qn0rHUQ3yAqmToC49w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deployment on Heroku

2019-03-25 Thread Aakash Baranwal
It goes into the site-packages in linux as well but it was not showing
there, infact even after I installed it there itself, then also it was not
there, however when I checked in the terminal by reinstalling it said that
requirement is already satisfied and its already in the requirements.txt
file.

I used this command :
as per the guide in this gunicorn guide by digital ocean

which is gunicorn --bind 0.0.0.0:8000 myproject.wsgi

Now when i run it in the browser, it says internal server error and the
terminal shows this error:

  File
"/home/aakash/Dev/tweetme/lib/python3.6/site-packages/gunicorn/workers/sync.py",
line 135, in handle
self.handle_request(listener, req, client, addr)
  File
"/home/aakash/Dev/tweetme/lib/python3.6/site-packages/gunicorn/workers/sync.py",
line 176, in handle_request
respiter = self.wsgi(environ, resp.start_response)
TypeError: __call__() takes 2 positional arguments but 3 were given


Kindly tell me what I might be doing wrong and also check my procfile if I
am going the right way

On Mon, Mar 25, 2019 at 12:56 PM Ahmed Ishtiaque 
wrote:

> From the looks of it, it seems that in your procfile you need to point to
> the *exact* location gunicorn is installed in. So this could be somewhere
> like ~/.local/lib/pythonx.y/site-packages/gunicorn directory on your heroku
> instance (if it’s a Linux filesystem... I don’t remember what heroku uses
> exactly).
>
> Also yes, always use environment variables to import your passwords,
> security keys etc. in deployment.
>
> On Mon, Mar 25, 2019 at 3:07 AM Aakash Baranwal 
> wrote:
>
>> Hi, I am Aakash. I have been working on a project which i want to deploy
>> on heroku, but i have been facing some issues. I searched for solutions on
>> the internet but none of them helped me.
>>
>> I, request you to kindly help me with the deployment.
>>
>> Pfa the settings.py, asgi.py , wsgi.py , Procfile.
>> Also, please check line no 34 in settings.py for the EMAIL_HOST_PASSWORD,
>> if I am doing it the right way or it should be done as commented in the
>> same line after the code.
>>
>> As you will see in the terminal, it says Starting ASGI channels, so do i
>> need the wsgi.py file anymore or should i run it with WSGI instead of ASGI?
>>
>> When I push it into the heroku server and run the application, it does
>> not run and in the heroku logs the error which it shows is :
>>
>>  at=error code=H10 desc="App crashed" method=GET path="/" host=
>> vibex.herokuapp.com request_id=3211546f-5081-4233-b016-428493e611c1
>> fwd="139.167.172.83" dyno= connect= service= status=503 bytes= protocol=http
>>
>> and it also shows  bash: gunicorn: command not found
>> which I have installed on my computer as well as by using heroku run pip
>> install gunicorn.
>>
>> I shall be extremely thankful for your help.
>>
>> Thanks in advance
>>
>> With Kind Regards
>> Aakash
>>
>> --
>> 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/CALr9hQ12oZ4C1L6BtYyPGbQuwrezaeWzd8x9JkLXE8jM80nM5A%40mail.gmail.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/CAKizqR6PP%2BROesNLjjXLWfX%3Dz8FdL4NJXqTpDtNzrkesYRYcsw%40mail.gmail.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/CALr9hQ0PLO4U3sHazTctMF

Django REST custom registration

2019-03-25 Thread shubham joshi
How can I create sign up form in such a way that..once a form has been 
filled and submitted by user (teacher / student) . The form should be sent 
to the Admins email id , once s/he verified the sign up form , the user 
should able log in

-- 
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/dfe16398-b145-4e1f-a20d-e69ce34e8261%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


add comment to post

2019-03-25 Thread omar ahmed
hiii  how can i make comments to my news posts ?

-- 
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/6817d8d9-4e45-4b19-a3b6-eb0804d5c146%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


custom registration form

2019-03-25 Thread Shubham Joshi
How can I create sign up form in such a way that..once a form has been 
filled and submitted by user (teacher / student) . The form should be sent 
to the Admins email id , once s/he verified the sign up form , the user 
should able log in

-- 
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/67df728c-e165-4390-8fd8-9c5bc4ae1103%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Having problem with first page of first tutorial

2019-03-25 Thread kendiramartha
hello please i have problem with my manage.py to start up a blog but this 
is what it show *Requirement already satisfied: manage.py in 
c:\users\oluwatomiwa\desktop\practiceone\myvenv\lib\site-packages (0.2.10)* 
please help me out


On Saturday, March 23, 2019 at 8:23:11 PM UTC+1, Ben Edwards wrote:
>
> Ive not done https://docs.djangoproject.com/en/2.1/intro/tutorial01/ 3 
> times and cant get past the first page.  Its kind of dryving me nuts. 
>
> Where I am at is in github https://github.com/ben-tvpp/site01
>
> Ive added the view 
> https://github.com/ben-tvpp/site01/blob/master/polls/views.py
>
> # Create your views here. 
>>
>> from django.http import HttpResponse 
>>
>>
>> def index(request): 
>> return HttpResponse("Hello, world. You're at the polls index.") 
>>
> from django.shortcuts import render
>>
>
> And the urls https://github.com/ben-tvpp/site01/blob/master/site01/urls.py
>
> from django.urls import include, path 
>>
>> urlpatterns = [ 
>> path('polls/', include('polls.urls')), 
>> path('admin/', admin.site.urls), 
>> ]
>>
>
> And even tried adding polls to 
> https://github.com/ben-tvpp/site01/blob/master/site01/settings.py
>
> but when I run the server
>
> site01$ python manage.py runserverIget the below error.  
>
> Traceback (most recent call last): 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/utils/autoreload.py",
>>  
>> line 225, in wrapper 
>> fn(*args, **kwargs) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/core/management/commands/runserver.py",
>>  
>> line 117, in inner_run 
>> self.check(display_num_errors=True) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/core/management/base.py",
>>  
>> line 379, in check 
>> include_deployment_checks=include_deployment_checks, 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/core/management/base.py",
>>  
>> line 366, in _run_checks 
>> return checks.run_checks(**kwargs) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/core/checks/registry.py",
>>  
>> line 71, in run_checks 
>> new_errors = check(app_configs=app_configs) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/core/checks/urls.py",
>>  
>> line 40, in check_url_namespaces_unique 
>> all_namespaces = _load_all_namespaces(resolver) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/core/checks/urls.py",
>>  
>> line 57, in _load_all_namespaces 
>> url_patterns = getattr(resolver, 'url_patterns', []) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/utils/functional.py",
>>  
>> line 37, in __get__ 
>> res = instance.__dict__[self.name] = self.func(instance) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/urls/resolvers.py",
>>  
>> line 533, in url_patterns 
>> patterns = getattr(self.urlconf_module, "urlpatterns", 
>> self.urlconf_module) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/utils/functional.py",
>>  
>> line 37, in __get__ 
>> res = instance.__dict__[self.name] = self.func(instance) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/urls/resolvers.py",
>>  
>> line 526, in urlconf_module 
>> return import_module(self.urlconf_name) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/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 "/mnt/d/django/site01/site01/urls.py", line 20, in  
>> path('polls/', include('polls.urls')), 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/site-packages/django/urls/conf.py",
>>  
>> line 34, in include 
>> urlconf_module = import_module(urlconf_module) 
>> File 
>> "/home/ben/.pyenv/versions/3.7.2/lib/python3.7/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 965, in _find_and_load_unlocked 
>> ModuleNotFoundError: No module named 'polls.urls'
>> Unhandled exception in thread started by > check_errors..wrapper at 0x7f1477b8eea0> 
>>
>
>
>
>>>
>
>  
>
>

-- 
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

ModelForm FileField Not Effecting the CSS

2019-03-25 Thread Irfan Khan
Hi, 

I have enquiry form developed in the MODELFORM, after rendering to the 
templates i defined the div tag in the put this form and applied the CSS 
effects.but the issue is all fields except fiel field are in the proper 
alignment, can any one please guide me to make this filefield also in 
proper alignement  pls find the attached file


-- 
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/0af7d223-40c5-4d2b-8dfe-166d1b62bd74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


DEPLOYEMENT

2019-03-25 Thread Sylvain Tshiasuma
Salut, tous

Je suis tout nouveau
Quelqu'un peut m'aider à comment heberger mon site sur webfaction.com?

Someone can help me to deploy my site on webfaction.com?

-- 
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/dff0ff3d-e770-459f-80b7-db379ee908bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Blog post that look like pages in open book

2019-03-25 Thread MJ
Hello, 

I have an idea for a simple blog site that look like a open book. For a 
simple prototype this is only text nothing fancy, no animation of turning 
page and so on. But I stumble on a problem with presenting simple text. 

First I assume that every page in the "book" is diffrent post/object but 
what if the text is too long to fit one page. I so than text should go to 
another page, but how to do this with a single post ? 

How to tell when text should go do another page ?

I struggle where to look in django for answers is this some magic in models 
? in templates ?

  


-- 
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/d57c72cb-e890-42ae-a616-dfcef3364a39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: custom registration form

2019-03-25 Thread Chetan Ganji
There is a better way in django.

Django provides admin panel for the admins, you just have to create one
account for the admin as superuser. Email needs to be sent manually which
can be done immediately after the form is validated.
User model has "*is_active*" flag that can be used to limit access before
the user is authorised by the admin. You will have to create an additional
page to accept or discard the registered user.

If you dont want to use default admin panel, you will end up writing CRUD
for the admin panel. Workflow will still be the same as above.



Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Mon, Mar 25, 2019 at 6:22 PM Shubham Joshi  wrote:

> How can I create sign up form in such a way that..once a form has been
> filled and submitted by user (teacher / student) . The form should be sent
> to the Admins email id , once s/he verified the sign up form , the user
> should able log in
>
> --
> 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/67df728c-e165-4390-8fd8-9c5bc4ae1103%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/CAMKMUjsnb%3D48VXQGhCOc-HoQ2END9n_zL0TrJ_9uQ7PZmdxtDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Fix docs for model.save() with update_fields specified and auto_now field in model

2019-03-25 Thread Sebastian Haase
Hi,
in section "Specifying which fields to save" 
(https://docs.djangoproject.com/en/dev/ref/models/instances/#specifying-which-fields-to-save)
 
it reads that `update_fields` can be specified mostly for performance 
benefits...
However, I found that regarding a field with "auto_now=True" there is a 
different outcome.
IOW, specifying `update_fields` can be used to keep the old date in 
respective  "auto_now=True"-field UNLESS that field is also explicitly 
given un `update_fields`

I hope I got this correct - at least that was the impression from my own 
tests with Django 2.1. Than this should be more prominently stated in the 
documentation.

Thanks for Django.
Sebastian

-- 
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/e2eb3a04-9c61-4a54-889f-32a5525b34a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fix docs for model.save() with update_fields specified and auto_now field in model

2019-03-25 Thread Sebastian Haase
There are of course stackoverflow postings -e.g. 
https://stackoverflow.com/questions/17474057/enforce-auto-now-when-using-saveupdate-fields
 - 
is almost 6 years old.

On Monday, March 25, 2019 at 4:30:57 PM UTC+1, Sebastian Haase wrote:
>
> Hi,
> in section "Specifying which fields to save" (
> https://docs.djangoproject.com/en/dev/ref/models/instances/#specifying-which-fields-to-save)
>  
> it reads that `update_fields` can be specified mostly for performance 
> benefits...
> However, I found that regarding a field with "auto_now=True" there is a 
> different outcome.
> IOW, specifying `update_fields` can be used to keep the old date in 
> respective  "auto_now=True"-field UNLESS that field is also explicitly 
> given un `update_fields`
>
> I hope I got this correct - at least that was the impression from my own 
> tests with Django 2.1. Than this should be more prominently stated in the 
> documentation.
>
> Thanks for Django.
> Sebastian
>
>

-- 
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/0eabc3b1-ac4b-491b-a44b-0db1e611e85e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: custom registration form

2019-03-25 Thread Mohamed Amin
O

On Mar 25, 2019 17:01, "Chetan Ganji"  wrote:

> There is a better way in django.
>
> Django provides admin panel for the admins, you just have to create one
> account for the admin as superuser. Email needs to be sent manually which
> can be done immediately after the form is validated.
> User model has "*is_active*" flag that can be used to limit access before
> the user is authorised by the admin. You will have to create an additional
> page to accept or discard the registered user.
>
> If you dont want to use default admin panel, you will end up writing CRUD
> for the admin panel. Workflow will still be the same as above.
>
>
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji.che...@gmail.com
> http://ryucoder.in
>
>
> On Mon, Mar 25, 2019 at 6:22 PM Shubham Joshi 
> wrote:
>
>> How can I create sign up form in such a way that..once a form has been
>> filled and submitted by user (teacher / student) . The form should be sent
>> to the Admins email id , once s/he verified the sign up form , the user
>> should able log in
>>
>> --
>> 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/67df728c-e165-4390-8fd8-9c5bc4ae1103%
>> 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/CAMKMUjsnb%3D48VXQGhCOc-HoQ2END9n_zL0TrJ_
> 9uQ7PZmdxtDw%40mail.gmail.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/CACMZ2LTgGBdFyMe76mvC91ZbM-xT-9UOzzGqS88xgZ_60JOM%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to deploy django on cpanel or server

2019-03-25 Thread Aayush Bhattarai


You can use Free Hosting Provider like Heroku and Python anywhere for 
> hosting your site.
>
 

>  Paid one include digital ocean and many more.
>
Just Google it. 

-- 
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/98550834-ff68-4fd1-a0cb-8302b9537a4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: add Image Field in model

2019-03-25 Thread Aayush Bhattarai

>
> *Dude Use this code*
>

*image = models.ImageField(upload_to='media/') *
*and also make sure to install pillow*

-- 
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/96968d3f-bdaa-406e-9116-7093961c5300%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Web Push Notification in Django

2019-03-25 Thread Aayush Bhattarai
*I am working on blog project and I wanted to add Web Push Notification in 
Django. I have researched a lot. I have not found proper answer on it.*
*Looking for good answer. Thank You.*

-- 
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/fae73806-d58e-4c70-88f4-59375e0af567%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Web Push Notification in Django

2019-03-25 Thread Suresh Kannan
Hi,

I hope this helps

https://www.digitalocean.com/community/tutorials/how-to-send-web-push-notifications-from-django-applications
https://github.com/safwanrahman/django-webpush



On Mon, 25 Mar 2019 at 12:28, Aayush Bhattarai 
wrote:

> *I am working on blog project and I wanted to add Web Push Notification in
> Django. I have researched a lot. I have not found proper answer on it.*
> *Looking for good answer. Thank You.*
>
> --
> 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/fae73806-d58e-4c70-88f4-59375e0af567%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/CANfVfcCo3xe1mZrXGHKfMuM%3DtQjPtzEhZ%2BX3FYTgmmcEeOXn6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Web Push Notification in Django

2019-03-25 Thread Ahmed Ishtiaque
Following this for my own purposes as well. I did only a little bit of
research (testing the waters, if you like) on this. So far, here are some
resources that are currently open in my browser right now:

Introduction to Push Notifications

-
to handle push notifications client-side
django-push-notifications
 - source for a
package I found that might enable push notification services for your
server-side code (views and such). Seems like it's maintained fairly well
so folks there might be able to answer your questions.
DigitalOcean Tutorial on Django Push Notifications

- I haven't checked the package they use to push yet but you might want to
take a look at this as well.

Hope you find this helpful!

On Mon, Mar 25, 2019 at 12:28 PM Aayush Bhattarai 
wrote:

> *I am working on blog project and I wanted to add Web Push Notification in
> Django. I have researched a lot. I have not found proper answer on it.*
> *Looking for good answer. Thank You.*
>
> --
> 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/fae73806-d58e-4c70-88f4-59375e0af567%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/CAKizqR7Y-bnX97eHK59d-CZO-3er-8ZPQWzDXLA%3DLVskqsb8hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Web Push Notification in Django

2019-03-25 Thread Aayush Bhattarai
Thanks dude. That's was very helpful.

On Monday, 25 March 2019 22:13:43 UTC+5:45, Aayush Bhattarai wrote:
>
> *I am working on blog project and I wanted to add Web Push Notification in 
> Django. I have researched a lot. I have not found proper answer on it.*
> *Looking for good answer. Thank You.*
>

-- 
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/d17a4372-34a3-4568-9a68-2e396ec6a1d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Help Needed For .Error Solving

2019-03-25 Thread Kumar Ashirwad Mishra
I am trying to send a request to paytm gateway checkout api for online 
transaction so I have created a form that has hidden values for request. So 
how to solve the csrf_token problem .. Thankyou  

-- 
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/1ccd4a76-e64c-4aab-8b08-5a1feee0fff1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{% extends 'base.htm' %}
{% load staticfiles %}
   {% block title %}E-DSW | Student | Payment{% endblock title %}
{% block container-fuild %}



{#now we  inherite the card.htm#}
{% include 'card2.htm' %}

{% csrf_token %}
{% for field in form.hidden_fields%}
{% if field.name == "CUST_ID" %}

{% elif field.name == "MOBILE_NO" %}

{% elif field.name == "EMAIL" %}

{% elif field.name == "CHECKSUMHASH" %}

{% elif field.name == "TXN_AMOUNT" %}

{% else %}
{{field}}
{% endif %}
{% endfor %}
  
Pay



If you want to cancel the Trasaction Press the CANCEL button , given below
  
  
  CANCEL



{% endblock container-fuild %}


Re: custom registration form

2019-03-25 Thread Sam W
Similar question  in Stackoverflow:

https://stackoverflow.com/questions/24791110/django-allauth-how-to-set-user-to-active-only-after-e-mail-verification/24809190

On Monday, March 25, 2019 at 7:52:57 AM UTC-5, Shubham Joshi wrote:
>
> How can I create sign up form in such a way that..once a form has been 
> filled and submitted by user (teacher / student) . The form should be sent 
> to the Admins email id , once s/he verified the sign up form , the user 
> should able log in
>

-- 
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/3df2988b-75fe-478c-9cd8-a6bf195f1ded%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django cms beginner app issue

2019-03-25 Thread Keegen Knapp
I'm trying to write a custom app where you can add new plants in the admin. 
Then create a list view, category view and detailed view. You can see my 
error and code below. Any help is greatly appreciated!!

Error - 

[image: Screen Shot 2019-03-25 at 11.25.09 AM.png]


models.py - 

from django.db import models
from cms.models.fields import PlaceholderField
from django.db.models.signals import pre_save

#create a basic species model
class Species(models.Model):
name = models.CharField(max_length=50, unique=True)
def __unicode__(self):
return self.name

class Plant(models.Model):
name = models.CharField(max_length=50, unique=True)
#textfield to choose season
season = models.TextField()
#automatically adds a created date, good for ordering plants by dates etc
pub_date = models.DateField(auto_now_add=True)
#automatically adds slug, requires Auto slug
slug = models.SlugField(max_length=70, unique=True)
#FK's to a species model
species = models.ForeignKey(Species)
#life cycle
life_cycle = models.CharField(max_length=60)
#add a upload section for specification sheets
position = models.TextField()
#take advantage of the CMS's placeholders for images, much more flexible 
than file_upload
image = PlaceholderField('plant_images', related_name="image")
#again description, take advantage of the CMS capabilities. 
description = PlaceholderField('plant_description', 
related_name="description")


*views.py*

from django.shortcuts import render_to_response
from django.template import RequestContext

class ProductDetailView(DetailView):
model = Plant
template_name = 'plants/detail.html'


*urls.py*
from plants.views import PlantDetailView

urlpatterns = patterns('plants.views',
url(r'^(?P[\w-]+)/$', PlantDetailView.as_view()),
)


*cms.app.py  -*

from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import ugettext_lazy as _

class PlantsApp(CMSApp):
name = _("Plants") # give your app a name, this is required
urls = ["plants.urls"] # link your app to url configuration(s)

def get_urls(self, page=None, language=None, **kwargs):
return ["plants.urls"]

apphook_pool.register(PlantsApp) # register your app

*apps.py - *
class PlantsConfig(AppConfig):
name = 'plants'
verbosename = "Plants"

*admin.py - *
from django.contrib import admin
from .models import Plant, Species
from aldryn_apphooks_config.admin import ModelAppHookConfig, 
BaseAppHookConfig

class PlantAdmin(ModelAppHookConfig, admin.ModelAdmin):
search_fields = ['name']
readonly_fields = ['slug']
ordering = ['name']
pass
admin.site.register(Plant, PlantAdmin)


class SpeciesAdmin(admin.ModelAdmin):
search_fields = ['name']
ordering = ['name']
pass
admin.site.register(Species, SpeciesAdmin)

-- 
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/f5c0d1e5-3962-48ce-8fdc-a082c37ddba5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django cms beginner app issue

2019-03-25 Thread LIGHTNING OMEGA 2 636
Just letting you know that, I've read msg and reviewed you code.  Although
these are interview objects, it uses word tokens.   Key words such as those
used in this code are handled well by utilizing Natural Language Processing
(NLP) methods.   Mapping and Regular Expressions (Regex) do alot of the
work in Python, R, React JavaScript etc.  Now I need to see if Turbo Pascal
supports these libraries of code.   If it's okay, maybe Tomorrow or Thurs
will work as far as meeting is concerned.

On Mon, Mar 25, 2019 at 7:07 PM Keegen Knapp  wrote:

> I'm trying to write a custom app where you can add new plants in the
> admin. Then create a list view, category view and detailed view. You can
> see my error and code below. Any help is greatly appreciated!!
>
> Error -
>
> [image: Screen Shot 2019-03-25 at 11.25.09 AM.png]
>
>
> models.py -
>
> from django.db import models
> from cms.models.fields import PlaceholderField
> from django.db.models.signals import pre_save
>
> #create a basic species model
> class Species(models.Model):
> name = models.CharField(max_length=50, unique=True)
> def __unicode__(self):
> return self.name
>
> class Plant(models.Model):
> name = models.CharField(max_length=50, unique=True)
> #textfield to choose season
> season = models.TextField()
> #automatically adds a created date, good for ordering plants by dates etc
> pub_date = models.DateField(auto_now_add=True)
> #automatically adds slug, requires Auto slug
> slug = models.SlugField(max_length=70, unique=True)
> #FK's to a species model
> species = models.ForeignKey(Species)
> #life cycle
> life_cycle = models.CharField(max_length=60)
> #add a upload section for specification sheets
> position = models.TextField()
> #take advantage of the CMS's placeholders for images, much more flexible
> than file_upload
> image = PlaceholderField('plant_images', related_name="image")
> #again description, take advantage of the CMS capabilities.
> description = PlaceholderField('plant_description',
> related_name="description")
>
>
> *views.py*
>
> from django.shortcuts import render_to_response
> from django.template import RequestContext
>
> class ProductDetailView(DetailView):
> model = Plant
> template_name = 'plants/detail.html'
>
>
> *urls.py*
> from plants.views import PlantDetailView
>
> urlpatterns = patterns('plants.views',
> url(r'^(?P[\w-]+)/$', PlantDetailView.as_view()),
> )
>
>
> *cms.app.py  -*
>
> from cms.app_base import CMSApp
> from cms.apphook_pool import apphook_pool
> from django.utils.translation import ugettext_lazy as _
>
> class PlantsApp(CMSApp):
> name = _("Plants") # give your app a name, this is required
> urls = ["plants.urls"] # link your app to url configuration(s)
>
> def get_urls(self, page=None, language=None, **kwargs):
> return ["plants.urls"]
>
> apphook_pool.register(PlantsApp) # register your app
>
> *apps.py - *
> class PlantsConfig(AppConfig):
> name = 'plants'
> verbosename = "Plants"
>
> *admin.py - *
> from django.contrib import admin
> from .models import Plant, Species
> from aldryn_apphooks_config.admin import ModelAppHookConfig,
> BaseAppHookConfig
>
> class PlantAdmin(ModelAppHookConfig, admin.ModelAdmin):
> search_fields = ['name']
> readonly_fields = ['slug']
> ordering = ['name']
> pass
> admin.site.register(Plant, PlantAdmin)
>
>
> class SpeciesAdmin(admin.ModelAdmin):
> search_fields = ['name']
> ordering = ['name']
> pass
> admin.site.register(Species, SpeciesAdmin)
>
> --
> 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/f5c0d1e5-3962-48ce-8fdc-a082c37ddba5%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/CAFJtDQf74MfjjJmdba8sdp7vgkMNDRp5251Xgrz0_o_0z03Fyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I create schemas while writing creating table models.

2019-03-25 Thread Sushen Jamwal
Anyone?

On Friday, 22 March 2019 20:58:20 UTC-4, Sushen Jamwal wrote:
>
> Hi all, 
>
> I am finding it difficult to create tables in different schemas under one 
> database. 
>
> For ex. mydatabase.myschemaone.school (DB.SCHEMA.TABLE) 
>
> and mydatabase.myschematwo.school 
>
> Thanks, 
> Sushen

-- 
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/7ec21f85-35a1-4ef5-94e6-9f8e7faaf579%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help Needed For .Error Solving

2019-03-25 Thread Mike Dewhirst

On 26/03/2019 4:35 am, Kumar Ashirwad Mishra wrote:
I am trying to send a request to paytm gateway checkout api for online 
transaction so I have created a form that has hidden values for 
request. So how to solve the csrf_token problem .. Thankyou


You need to include the CSRF token immediately after the form action

    
    {% csrf_token %}

... so if that occurs in card2.htm that's where it should be.

hth



--
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/1ccd4a76-e64c-4aab-8b08-5a1feee0fff1%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/5f2b5f04-0129-a669-06c8-8c1345293c0d%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Web Push Notification in Django

2019-03-25 Thread Sam W
Web Push Notification Package for Django:

https://github.com/safwanrahman/django-webpush

On Monday, March 25, 2019 at 11:28:43 AM UTC-5, Aayush Bhattarai wrote:
>
> *I am working on blog project and I wanted to add Web Push Notification in 
> Django. I have researched a lot. I have not found proper answer on it.*
> *Looking for good answer. Thank You.*
>

-- 
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/41aa9875-4035-44d4-a836-be044caed128%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django REST custom registration

2019-03-25 Thread Sam W
Similar question  in Stackoverflow:

https://stackoverflow.com/questions/24791110/django-allauth-how-to-set-user-to-active-only-after-e-mail-verification/24809190

On Monday, March 25, 2019 at 4:17:11 AM UTC-5, shubham joshi wrote:
>
> How can I create sign up form in such a way that..once a form has been 
> filled and submitted by user (teacher / student) . The form should be sent 
> to the Admins email id , once s/he verified the sign up form , the user 
> should able log in
>

-- 
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/121d6dda-fd92-48e9-b5f8-cdd6ad84a8b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


google summer of code

2019-03-25 Thread Nourhan Hekal
"Test framework cleanup 
"
 
actually I like to apply for this idea but I need more information to make 
up my mind can you tell me a little bit more declaration of the 
requirements ? 

-- 
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/2fd66052-0236-4e5f-a60b-cc5e8c3511a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to deploy django on cpanel or server

2019-03-25 Thread Surojit Sahu
 i am not getting perfect tutorial for this plz share link or share the
full process for deploying django on cpanel.

thanks surojit

On Mon, Mar 25, 2019 at 9:58 PM Aayush Bhattarai 
wrote:

>
>
> You can use Free Hosting Provider like Heroku and Python anywhere for
>> hosting your site.
>>
>
>
>>  Paid one include digital ocean and many more.
>>
> Just Google it.
>
> --
> 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/98550834-ff68-4fd1-a0cb-8302b9537a4e%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/CAHG_hh5GW7qvTi3fMNDoYoD5%2B8tCXn_swfYCNApyYzwhUTq_kw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Translation doesn't work?

2019-03-25 Thread ANi
Does anyone have clue about it? 
I'll appreciate your help!

ANi於 2019年3月22日星期五 UTC+8上午11時12分07秒寫道:
>
> Hello.
> The only word that has been translated is "name", but it seems that it is 
> the default one in Django.
> So basically my translation does not work at all..
> please help 
>
> Here is what I've done so far...
>
> settings.py
> MIDDLEWARE = [
>  ...
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.locale.LocaleMiddleware',
>  ...
> ]
>
>
> LANGUAGE = [
>  ('en-us', 'English'), 
>  ('zh-Hant','繁體中文'), 
> ]
>
>
> LANGUAGE_CODE = 'zh-Hant'
>
>
> USE_I18N = True
>
> USE_L10N = True
>
> ...
>
>
> LANGUAGE_PATHS = os.path.join(BASE_DIR, "locale")
>
>
> part of django.po
>
> #: .\main\models\center.py:43 .\main\models\company.py:18
> #: .\main\models\company.py:33 .\main\models\log.py:70
> #: .\main\models\select.py:17 .\main\models\select.py:33
> #: .\main\models\item.py:95 .\templates\main\main.html:11
> msgid "name"
> msgstr "名稱"
>
>
> #: .\main\models\item.py:98 .\templates\main\main.html:13
> msgid "value"
> msgstr "價值"
>
>
> #: .\main\models\item.py:102 .\main\models\log.py:98
> msgid "currency"
> msgstr "幣別"
>
>
>
> part of main.html
> {% load static %}
> {% load filters %}
> {% load i18n %}
> {% block container %}
>  
>  
>  
>  {% trans 'name' %}
>  {% tans 'value' %}
>  ...
>
>
> part of item.py
> from django.utils.translation import gettext_lazy as _
> ...
>
> class Asset(models.Model):
>  name = models.CharField(_('name'), max_length=255)
>  value = models.IntegerField(_('value'))
>  currency = models.ForeignKey(Currency,
>   null=True,
>   on_delete=models.SET_NULL,
>verbose_name=_('currency'))
>  ...
>
> filte structure
> myproject
>  - main_app
>  - common-statics
>  - templates
>  - myproject
>  - locale
>  - zh-hant
>-LC_MESSAGES
>  - django.mo
>  - django.po
>
>
> 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 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/91f4655c-a0d0-4069-8411-155f06d9d01b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Translation doesn't work?

2019-03-25 Thread Gourav Sardana
Use the correct spelling in your html
Its {%trans%}
Please use this. Hope so this will fine working !
Have a good day!

On Tue, 26 Mar 2019, 11:29 am ANi,  wrote:

> Does anyone have clue about it?
> I'll appreciate your help!
>
> ANi於 2019年3月22日星期五 UTC+8上午11時12分07秒寫道:
>>
>> Hello.
>> The only word that has been translated is "name", but it seems that it is
>> the default one in Django.
>> So basically my translation does not work at all..
>> please help
>>
>> Here is what I've done so far...
>>
>> settings.py
>> MIDDLEWARE = [
>>  ...
>>  'django.contrib.sessions.middleware.SessionMiddleware',
>>  'django.middleware.locale.LocaleMiddleware',
>>  ...
>> ]
>>
>>
>> LANGUAGE = [
>>  ('en-us', 'English'),
>>  ('zh-Hant','繁體中文'),
>> ]
>>
>>
>> LANGUAGE_CODE = 'zh-Hant'
>>
>>
>> USE_I18N = True
>>
>> USE_L10N = True
>>
>> ...
>>
>>
>> LANGUAGE_PATHS = os.path.join(BASE_DIR, "locale")
>>
>>
>> part of django.po
>>
>> #: .\main\models\center.py:43 .\main\models\company.py:18
>> #: .\main\models\company.py:33 .\main\models\log.py:70
>> #: .\main\models\select.py:17 .\main\models\select.py:33
>> #: .\main\models\item.py:95 .\templates\main\main.html:11
>> msgid "name"
>> msgstr "名稱"
>>
>>
>> #: .\main\models\item.py:98 .\templates\main\main.html:13
>> msgid "value"
>> msgstr "價值"
>>
>>
>> #: .\main\models\item.py:102 .\main\models\log.py:98
>> msgid "currency"
>> msgstr "幣別"
>>
>>
>>
>> part of main.html
>> {% load static %}
>> {% load filters %}
>> {% load i18n %}
>> {% block container %}
>>  
>>  
>>  
>>  {% trans 'name' %}
>>  {% tans 'value' %}
>>  ...
>>
>>
>> part of item.py
>> from django.utils.translation import gettext_lazy as _
>> ...
>>
>> class Asset(models.Model):
>>  name = models.CharField(_('name'), max_length=255)
>>  value = models.IntegerField(_('value'))
>>  currency = models.ForeignKey(Currency,
>>   null=True,
>>   on_delete=models.SET_NULL,
>>verbose_name=_('currency'))
>>  ...
>>
>> filte structure
>> myproject
>>  - main_app
>>  - common-statics
>>  - templates
>>  - myproject
>>  - locale
>>  - zh-hant
>>-LC_MESSAGES
>>  - django.mo
>>  - django.po
>>
>>
>> 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 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/91f4655c-a0d0-4069-8411-155f06d9d01b%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/CACdXjQKaHxiK1sUGRkPVo%3DcEK%2Brs-mhvY8BfS-7AS5Fc6ckRYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Web Push Notification in Django

2019-03-25 Thread Sam W
This one is very simple:

https://www.pushbots.help/install-pushbots-in-your-app-or-website/web-pages/add-pushbots-to-your-web-page

On Monday, March 25, 2019 at 11:28:43 AM UTC-5, Aayush Bhattarai wrote:
>
> *I am working on blog project and I wanted to add Web Push Notification in 
> Django. I have researched a lot. I have not found proper answer on it.*
> *Looking for good answer. Thank You.*
>

-- 
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/ed736569-2d1c-4ec7-b46e-c47e5670bd40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django REST custom registration

2019-03-25 Thread Shubham Joshi
thanks


On Tue, Mar 26, 2019 at 8:33 AM Sam W  wrote:

> Similar question  in Stackoverflow:
>
>
> https://stackoverflow.com/questions/24791110/django-allauth-how-to-set-user-to-active-only-after-e-mail-verification/24809190
>
> On Monday, March 25, 2019 at 4:17:11 AM UTC-5, shubham joshi wrote:
>>
>> How can I create sign up form in such a way that..once a form has been
>> filled and submitted by user (teacher / student) . The form should be sent
>> to the Admins email id , once s/he verified the sign up form , the user
>> should able log in
>>
> --
> 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/121d6dda-fd92-48e9-b5f8-cdd6ad84a8b6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
*Shubham Joshi*
Business Developer | Terse Software
M: 8390246938

E: shub...@tersesoft.com 
www.tersesoft.com
[image: linkedin]  [image:
github] 

-- 
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/CAGJdmX6G5e5mdCxG0_vFMFT2wpwF9QN%2BJbw%2BWNW77RNEhaeR8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Translation doesn't work?

2019-03-25 Thread ANi
Oooops, it's a typo. Thanks!

Gourav Sardana於 2019年3月26日星期二 UTC+8下午2時04分11秒寫道:
>
> Use the correct spelling in your html
> Its {%trans%}
> Please use this. Hope so this will fine working !
> Have a good day!
>
> On Tue, 26 Mar 2019, 11:29 am ANi, > 
> wrote:
>
>> Does anyone have clue about it? 
>> I'll appreciate your help!
>>
>> ANi於 2019年3月22日星期五 UTC+8上午11時12分07秒寫道:
>>>
>>> Hello.
>>> The only word that has been translated is "name", but it seems that it 
>>> is the default one in Django.
>>> So basically my translation does not work at all..
>>> please help 
>>>
>>> Here is what I've done so far...
>>>
>>> settings.py
>>> MIDDLEWARE = [
>>>  ...
>>>  'django.contrib.sessions.middleware.SessionMiddleware',
>>>  'django.middleware.locale.LocaleMiddleware',
>>>  ...
>>> ]
>>>
>>>
>>> LANGUAGE = [
>>>  ('en-us', 'English'), 
>>>  ('zh-Hant','繁體中文'), 
>>> ]
>>>
>>>
>>> LANGUAGE_CODE = 'zh-Hant'
>>>
>>>
>>> USE_I18N = True
>>>
>>> USE_L10N = True
>>>
>>> ...
>>>
>>>
>>> LANGUAGE_PATHS = os.path.join(BASE_DIR, "locale")
>>>
>>>
>>> part of django.po
>>>
>>> #: .\main\models\center.py:43 .\main\models\company.py:18
>>> #: .\main\models\company.py:33 .\main\models\log.py:70
>>> #: .\main\models\select.py:17 .\main\models\select.py:33
>>> #: .\main\models\item.py:95 .\templates\main\main.html:11
>>> msgid "name"
>>> msgstr "名稱"
>>>
>>>
>>> #: .\main\models\item.py:98 .\templates\main\main.html:13
>>> msgid "value"
>>> msgstr "價值"
>>>
>>>
>>> #: .\main\models\item.py:102 .\main\models\log.py:98
>>> msgid "currency"
>>> msgstr "幣別"
>>>
>>>
>>>
>>> part of main.html
>>> {% load static %}
>>> {% load filters %}
>>> {% load i18n %}
>>> {% block container %}
>>>  
>>>  
>>>  
>>>  {% trans 'name' %}
>>>  {% tans 'value' %}
>>>  ...
>>>
>>>
>>> part of item.py
>>> from django.utils.translation import gettext_lazy as _
>>> ...
>>>
>>> class Asset(models.Model):
>>>  name = models.CharField(_('name'), max_length=255)
>>>  value = models.IntegerField(_('value'))
>>>  currency = models.ForeignKey(Currency,
>>>   null=True,
>>>   on_delete=models.SET_NULL,
>>>verbose_name=_('currency'))
>>>  ...
>>>
>>> filte structure
>>> myproject
>>>  - main_app
>>>  - common-statics
>>>  - templates
>>>  - myproject
>>>  - locale
>>>  - zh-hant
>>>-LC_MESSAGES
>>>  - django.mo
>>>  - django.po
>>>
>>>
>>> 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...@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/91f4655c-a0d0-4069-8411-155f06d9d01b%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/0f78093b-14fb-4b19-b97f-fa781011a504%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.