thank you fabio
I needed this line:
'secretballot.middleware.SecretBallotIpUseragentMiddleware',

my problem solved
thanks again

On Saturday, April 8, 2017 at 3:52:51 PM UTC+4:30, Fabio Caritas 
Barrionuevo da Luz wrote:
>
> Hello Shahab. 
>
> Perhaps the real problem is that you apparently have not completed a good 
> tutorial to learn how django works and how to use it.
>
> I would recommend these two tutorials: https://tutorial.djangogirls.org/ 
> and http://www.marinamele.com/taskbuster-django-tutorial
>
> said that, this is the relevant documentation about django Middleware: 
> https://docs.djangoproject.com/en/1.11/topics/http/middleware/
>
> Note: The django Middleware configuration on settings.py was renamed in 
> Django 1.10, from MIDDLEWARE_CLASSES to MIDDLEWARE .
>
> Learn more about why this change in: 
> https://github.com/django/deps/blob/master/final/0005-improved-middleware.rst
>
> About django-secretballot specifically, the available 
>
>
> https://github.com/jamesturk/django-secretballot/blob/master/secretballot/middleware.py#L13-L18
>
>
> MIDDLEWARE = [
>     #.... other previous middleware configurations
>     
>     # Add the below line, on final of MIDDLEWARE variable in your 
> settings.py
>     'secretballot.middleware.SecretBallotIpUseragentMiddleware',
> ]
>
>
> I hope this has helped. Good studies :-)
>
> On Sat, Apr 8, 2017 at 3:23 AM, shahab emami <royar...@gmail.com 
> <javascript:>> wrote:
>
>> I knew where middleware is myself.
>> if you read my first post you will see that .
>> my question is:
>> what i have to add to middleware?
>>
>> On Friday, April 7, 2017 at 7:16:36 PM UTC+4:30, shahab emami wrote:
>>>
>>> hello 
>>> i have a simple question
>>> please help me if you can
>>>
>>>
>>> i want to install this package on my project:
>>>
>>> https://pypi.python.org/pypi/django-secretballot/
>>>
>>> I am doing the installation step by step but after adding 
>>> 'secretballot', to my installed_apps It says:
>>>
>>> * add a secretballot middleware to MIDDLEWARE_CLASSES (see middleware 
>>> section for details)
>>>
>>>
>>> I now where MIDDLEWARE_CLASSES is. it's in setteings.py right after 
>>> installed_apps but i don't
>>> what I have to add to it. 
>>> can you tell me what's the point when it says "add a secretballot 
>>> middleware" ?
>>> i mean how many secretballot middleware we have that i have to add one 
>>> of them to my installed_apps?
>>>
>>> thank you again
>>>
>>> -- 
>> 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 <javascript:>.
>> To post to this group, send email to django...@googlegroups.com 
>> <javascript:>.
>> 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/63d353bb-8ef6-4c15-ba79-eb6ce9b80023%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/63d353bb-8ef6-4c15-ba79-eb6ce9b80023%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Fábio C. Barrionuevo da Luz
> Palmas - Tocantins - Brasil - América do Sul
>
> http://pythonclub.com.br/
>
> Blog colaborativo sobre Python e tecnologias Relacionadas, mantido 
> totalmente no https://github.com/pythonclub/pythonclub.github.io .
>
> Todos são livres para publicar. É só fazer fork, escrever sua postagem e 
> mandar o pull-request. Leia mais sobre como publicar em README.md e 
> contributing.md.
> Regra básica de postagem:
> "Você" acha interessante? É útil para "você"? Pode ser utilizado com 
> Python ou é útil para quem usa Python? Está esperando o que? Publica logo, 
> que estou louco para ler...
>
>

-- 
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/911b1e61-6cd8-491d-afce-cfdfb7c1a5d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to