Re: A picturesque authentication problem ONLY in Google Chrome

2023-06-08 Thread Fabio C. Barrionuevo da Luz
Try to define the SESSION_COOKIE_DOMAIN on your settings.py

SESSION_COOKIE_DOMAIN=".dominio.com.br"

https://docs.djangoproject.com/en/4.2/ref/settings/#session-cookie-domain
https://django.readthedocs.io/en/1.4.X/ref/settings.html#session-cookie-domain

That said, Django 1.4.22 was released 8 years ago, and most likely, there
were a lot of fixes between Django 1.4 and 4.2 LTS, including several
security fixes for major flaws, so even if you manage to solve this
particular problem, perhaps you should consider starting planning to port
this system to newer versions of Python and Django.

If you need help with this, Labcodes can help you in migrating and
structure your project to be more maintainable in the long term.

You can contact us by *contact at labcodes.com.br *
and mention my name.





Em qui., 8 de jun. de 2023 às 15:48, Rogerio Carrasqueira <
rogerio.carrasque...@gmail.com> escreveu:

> Hello All!
>
> All good? I'm running an application in Django 1.4.22 and some days I'm
> facing some difficulties for my users to access the restricted area of my
> site. It so happens that I have the site running on the main domain
> www.dominio.com.br and the restricted area on app.dominio.com.br, both
> running on https, and so far everything is fine.
>
> When the user tries to access the restricted area thru the main domain, he
> enters the site www.dominio.com.br and clicks on a link that redirects to
> the restricted area in the subdomain app.dominio.com.br, but he cannot
> log in, he it puts the username and password and returns to the initial
> login page, and it does not authenticate.
>
> After some tests, I verified that if I go to Chrome's privacy settings, I
> can delete the cookie for the domain in question, after the removal of
> domain cookie information and if the user accesses directly via
> app.domain.com.br, without going through the main site www.dominio.com.br,
> can log in successfully. Now, if you go through the main site afterwards,
> you can no longer log in to the restricted area, you must delete the cookie
> again in the Google Chrome settings.
>
> In other browsers this problem does not happen, including in other
> browsers of the Chromiun family, such as Brave, Vivaldi and even
> Micro$oft's own.
>
> Has anyone gone through a similar problem?
>
> Awaiting help from a kind soul
>
> Cheers!
>
> Rogério Carrasqueira
>
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACX1ULQ4kMb%2BfdrkfZg0KvBUyfha6zbNDU1u1Grg9cFP_gfR9g%40mail.gmail.com
> 
> .
>


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMZuZFjbUg0aM38tzP3Yz9FXsFjhVnJfEGFdK5WVBNa0zg%40mail.gmail.com.


Re: Queryset in settings.py?

2022-01-28 Thread Fabio C. Barrionuevo da Luz
The solution I think of for this is to overwrite get_template_names

https://ccbv.co.uk/projects/Django/4.0/django.views.generic.base/TemplateView/#get_template_names

I quickly made a draft implementation (which I couldn't test)


from django.core.exceptions import ImproperlyConfigured
from django.views.generic import TemplateView
from app.models import UserTemplate

class PrependTemplatePathMixin:

def get_template_names(self):
"""
Return a list of template names to be used for the request. Must
return
a list. May not be called if render_to_response() is overridden.
"""
if self.template_name is None:
raise ImproperlyConfigured(
"PrependTemplatePathMixin requires either a definition of "
"'template_name' or an implementation of
'get_template_names()'")
else:
user_template = UserTemplate.object.get(
user_id=self.request.user.pk
)
template_namespace =
user_template.template_namespace.strip().replace('..', '').lstrip('/')
template_name = f'{template_namespace}/{self.template_name}'
return [template_name]


class MyTemplateView(PrependTemplatePathMixin, TemplateView):
template_name = 'my-template.html'



another option is to use or implement something similar to
https://github.com/jazzband/django-dbtemplates/


Em sex., 28 de jan. de 2022 às 20:20, Sebastian Jung <
sebastian.ju...@gmail.com> escreveu:

> Hello Fabio,
>
> i want that admin can make in database a entry to a field in my own
> settings model in field standardtemplatepath for example /newtemplate/ in
> my views.py there are exists a normal CBV Templateview with template_name =
> 'Testtemplate.html' and in settings.py i have a entry TEMPLATES = [
> {
>
> 'DIRS': [
> location('templates'),
> ]}
>
> Now when a endcustomer open this view then this view get template from
> /templates/newtemplate/Testtemplate.html. How can archive this?
>
> Thank you very much
>
> Am Sa., 29. Jan. 2022 um 00:14 Uhr schrieb Fabio C. Barrionuevo da Luz <
> bna...@gmail.com>:
>
>> Hi Sebastian, I guess this is not possible.
>>
>> But the real question is: why do you need a queryset to perform in the
>> settings?
>>
>> Perhaps if you explain what problem you want to solve, we can give you
>> some options for other possible solutions.
>>
>>
>>
>> Em sex., 28 de jan. de 2022 às 20:00, sebasti...@gmail.com <
>> sebastian.ju...@gmail.com> escreveu:
>>
>>> Hello,
>>>
>>> i want to import from a app models.py like this:
>>>
>>> from app1.models import classname
>>>
>>> then i get:
>>>
>>> django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
>>>
>>> I want to get a queryset from app1.models.classname in settings.py. How
>>> is this possible?
>>>
>>> Regards
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/18ef496c-c9a1-40df-b251-7ce2cc2dad82n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/18ef496c-c9a1-40df-b251-7ce2cc2dad82n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google

Re: Queryset in settings.py?

2022-01-28 Thread Fabio C. Barrionuevo da Luz
Hi Sebastian, I guess this is not possible.

But the real question is: why do you need a queryset to perform in the
settings?

Perhaps if you explain what problem you want to solve, we can give you some
options for other possible solutions.



Em sex., 28 de jan. de 2022 às 20:00, sebasti...@gmail.com <
sebastian.ju...@gmail.com> escreveu:

> Hello,
>
> i want to import from a app models.py like this:
>
> from app1.models import classname
>
> then i get:
>
> django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
>
> I want to get a queryset from app1.models.classname in settings.py. How is
> this possible?
>
> Regards
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/18ef496c-c9a1-40df-b251-7ce2cc2dad82n%40googlegroups.com
> 
> .
>


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMaWUcpwzWePO3XF%2BtqRP3e-YFH4iE9om8ig2hhTeazN%3DQ%40mail.gmail.com.


Re: order_by on the basis of time difference (updated_at - created_at)

2022-01-21 Thread Fabio C. Barrionuevo da Luz
this can be easily solved by using an annotation to calculate the
difference and store it in a new temporary column, and then sort by it


from django.db.models import F
from myapp.models import ExampleModel

queryset = ExampleModel.objects.annotate(
dt_difference=F('updated_at') - F('created_at')
).order_by('dt_difference')

for example in queryset[:10]:
print(f'created_at={example.created_at} -
updated_at={example.updated_at} - dt_difference={example.dt_difference}')



Em sex., 21 de jan. de 2022 às 10:54, Gabriel Araya Garcia <
gabrielaraya2...@gmail.com> escreveu:

> Try this:
> ExampleModel.objects.all().order_by('updated_at' , '-created_at')
> Gabriel Araya Garcia
> GMI - Desarrollo de Sistemas Informáticos
>
>
>
>
> El vie, 21 ene 2022 a las 1:54, Aadil Rashid ()
> escribió:
>
>> class ExampleModel(models.Model):
>> is_active = models.BooleanField(default=True)
>> created_at = models.DateTimeField(auto_now_add=True)
>> updated_at = models.DateTimeField(auto_now=True)
>>
>>
>>
>> I want to query on UserModel such that the Query set which I get
>> should be orderable in terms of time difference of updated_at - created_at,
>> I tried
>> ExampleModel.objects.all().order_by('updated_at' - 'created_at')
>> but this is not working
>> it throws, *TypeError*: unsupported operand type(s) for -: 'str' and
>> 'str'
>>
>>
>> Django Family Please Help...
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAAYXZx8sABKuJn5Q1ATeHnYsrixfU9wTH_TtPYoR5%3DeAd8DOzA%40mail.gmail.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKVvSDDy%2BnJNcFE-xpz38zfDVYgw6P3zDZ9BJ_5-EsoAtDDLTw%40mail.gmail.com
> 
> .
>


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMYVR1yqZjLuEh5u6DaR5DZfeYqvFy-MaNkt7MiWO7O%2Bxw%40mail.gmail.com.


Re: django

2021-03-29 Thread Fabio C. Barrionuevo da Luz
Your implementation can probably be changed to something like this



import random

all_qs = Trending.objects.all()
if all_qs.exists():  # checks whether to return at least one record
# query all pk numbers and convert to a tuple
all_pks = tuple(all_qs.values_list("pk", flat=True))
# get a random pk number from the tuple
random_pk = random.choice(all_pks)
# get a object by the random pk
random_object = Trending.objects.get(pk=random_pk)


ps: I have not tested this code.


Em seg., 29 de mar. de 2021 às 17:17, Jonathan Bilesi <
jonathanbil...@gmail.com> escreveu:

> hi
> i getting this error
> ValueError at /empty range for randrange() (0, 0, 0)
>
> here my code
>
> random_object = Trending.objects.all()[randint(0, len(trending) -1)]
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/61600bb6-f877-4588-a799-0b29109d43d5n%40googlegroups.com
> 
> .
>


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMYgaX1UKDc9Gq-7jCGp5kxG0Cg_J_VhMhObjnP0aREGKg%40mail.gmail.com.


django-versatileimagefield and Django 3.1/3.2 compatibility

2021-03-29 Thread Fabio C. Barrionuevo da Luz
Hello community

>From the point of view of those who develop pluggable apps for Django, do
you know if there has been any significant change in ImageField / FileField
implementation (and related code) between Django 3.0 and 3.1 and which is
not explicitly mentioned in the release notes and maybe possible can break
pluggable apps that use it?

I'm trying to fix django-versatileimagefield and make it compatible with
Django 3.1 and 3.2, however, the tests only pass on Django 3.0 or lower,
and I was unable to discover any other significant changes other than the "
self.name/self.field.name"  to "self.attname/self.field.attname" in some
places.

At the moment, I'm getting a lot of "AttributeError: 'Foo' object has no
attribute 'bar'" errors, like:

AttributeError: 'VersatileImageFieldFile' object has no attribute
'_ppoi_value'
AttributeError: 'VersatileImageFieldFile' object has no attribute 'filters'
AttributeError: 'VersatileImageFieldFile' object has no attribute
'thumbnail'

The full traceback can be found at this link:
https://github.com/luzfcb/django-versatileimagefield/runs/2221660202?check_suite_focus=true#step:7:135

If someone is interested in looking at the source code:

https://github.com/luzfcb/django-versatileimagefield/tree/django3.2_tox_github_actions

Or to be more specific:

https://github.com/luzfcb/django-versatileimagefield/blob/django3.2_tox_github_actions/versatileimagefield/files.py

https://github.com/luzfcb/django-versatileimagefield/blob/django3.2_tox_github_actions/versatileimagefield/fields.py


If you have any ideas or guesses as to the cause of these errors, let me
know.

I'm digging into the implementation of django-versatileimagefield, but I'm
still trying to understand how the pieces fit together in order to finally
figure out a way to fix this.

-- 
Fabio C. Barrionuevo da Luz
Palmas - Tocantins - Brazil - South America
GMT -3 Timezone
https://github.com/luzfcb/
https://twitter.com/luzfcb/

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMZ5Uok8t9YcFh1Px1wtg7J-OEKVYcTrahbAYQz7o9Zj9g%40mail.gmail.com.


Re: 如何解析源码

2019-07-15 Thread Fabio C. Barrionuevo da Luz
https://github.com/django/django


Em seg, 15 de jul de 2019 07:51, xuehao weng 
escreveu:

> 如何解析源码
>
> --
> 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/187aaa0c-b08f-4fa7-a4d6-b15e2db3dd18%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/CAPVjvMYm8xn5483kt1eSMhoXNw-7CT%3Ds3oaiDnv%3DiogWOVdG0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Heroku and DJango_Filters

2019-06-26 Thread Fabio C. Barrionuevo da Luz
make sure that you use the right package in your requirements.txt

This is the package that everyone uses:

django-filter
https://pypi.org/project/django-filter/

This is another package with a very similar name

https://pypi.org/project/django-filters/



Em qua, 26 de jun de 2019 às 16:21, Charlotte Wood <
charlotte.w...@epiccharterschools.org> escreveu:

> I have that.  That's not the problem.  My specific problem is
> django_filters.  My app worked totally fine until I added these filters.
> My questions was:  has anyone had trouble with django-filters and if so,
> how did you fix it?
>
>
> Charlotte Wood, MEd
>
> Educator
>
> (405) 578-5701
>
> Zoom Meeting ID#: 4055785701
>
> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912
>
> Classroom Google Site:
> https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home
>
> Epic Technical Support: (405) 652-0935
>
>
>
> Jordan McKesson Principal
>
> 405-749-4550 ext. 309
>
> jordan.mckes...@epiccharterschools.org
>
> <http://facebook.com/epiccharterschools> <https://twitter.com/epiccharter>
> <https://www.instagram.com/epiccharterschools/>
> <https://www.youtube.com/user/EpicCharterSchools>
>
>
>
>
> On Wed, Jun 26, 2019 at 2:17 PM Fabio C. Barrionuevo da Luz <
> bna...@gmail.com> wrote:
>
>> Heroku use a "buildpack"
>> https://devcenter.heroku.com/articles/buildpacks to do automate some
>> things in the deployment.
>> you can attach one or more buildpacks to your project in heroku
>> you can also create your own buildpack to customize it.
>>
>> specifically for Python, the heroku python buildpack (
>> https://github.com/heroku/heroku-buildpack-python) will:
>>
>> - search a "requirements.txt" file on root directory and install all
>> packages listed on that file.
>> - search pipenv related files and install all packages listed on that
>> file.
>>
>> in short, have a requirements.txt file in your root directory
>>
>>
>>
>>
>>
>> Em qua, 26 de jun de 2019 às 16:07, Charlotte Wood <
>> charlotte.w...@epiccharterschools.org> escreveu:
>>
>>> ok, stupid question
>>>
>>> is there a heroku pip install?
>>>
>>> all of my dependencies are installed and listed on my requirements.txt
>>> file just like they're supposed to be.
>>>
>>> do i pip install somewhere OTHER than my folder in my virtual
>>> environment?
>>>
>>> i could be totally crazy, but i don't remember every using heroku pip
>>> install.
>>>
>>>
>>>
>>>
>>> Charlotte Wood, MEd
>>>
>>> Educator
>>>
>>> (405) 578-5701
>>>
>>> Zoom Meeting ID#: 4055785701
>>>
>>> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912
>>>
>>> Classroom Google Site:
>>> https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home
>>>
>>> Epic Technical Support: (405) 652-0935
>>>
>>>
>>>
>>> Jordan McKesson Principal
>>>
>>> 405-749-4550 ext. 309
>>>
>>> jordan.mckes...@epiccharterschools.org
>>>
>>> <http://facebook.com/epiccharterschools>
>>> <https://twitter.com/epiccharter>
>>> <https://www.instagram.com/epiccharterschools/>
>>> <https://www.youtube.com/user/EpicCharterSchools>
>>>
>>>
>>>
>>>
>>> On Wed, Jun 26, 2019 at 12:07 PM Sithembewena L. Dube 
>>> wrote:
>>>
>>>> It sounds like the package django-filters is not installed on your
>>>> Heroku environment.
>>>>
>>>> Do you have a dependency file suck as a Pipfile or requirements.txt? If
>>>> you do, you will need to install all dependencies listed there on your
>>>> Heroku server (at least those you need for production use).
>>>>
>>>> Kind regards,
>>>> Lloyd
>>>>
>>>>
>>>> *Sent with Shift
>>>> <https://tryshift.com/?utm_source=SentWithShift_campaign=Sent%20with%20Shift%20Signature_medium=Email%20Signature_content=General%20Email%20Group>*
>>>>
>>>> On Wed, Jun 26, 2019 at 6:53 PM Charlotte Wood <
>>>> charlotte.w...@epiccharterschools.org> wrote:
>>>>
>>>>> The only error I keep seeing is "No Module Found" for django-filters
>>>>>
>>>>> But, I don't understand why it

Re: Heroku and DJango_Filters

2019-06-26 Thread Fabio C. Barrionuevo da Luz
Heroku use a "buildpack"  https://devcenter.heroku.com/articles/buildpacks to
do automate some things in the deployment.
you can attach one or more buildpacks to your project in heroku
you can also create your own buildpack to customize it.

specifically for Python, the heroku python buildpack (
https://github.com/heroku/heroku-buildpack-python) will:

- search a "requirements.txt" file on root directory and install all
packages listed on that file.
- search pipenv related files and install all packages listed on that file.

in short, have a requirements.txt file in your root directory





Em qua, 26 de jun de 2019 às 16:07, Charlotte Wood <
charlotte.w...@epiccharterschools.org> escreveu:

> ok, stupid question
>
> is there a heroku pip install?
>
> all of my dependencies are installed and listed on my requirements.txt
> file just like they're supposed to be.
>
> do i pip install somewhere OTHER than my folder in my virtual environment?
>
> i could be totally crazy, but i don't remember every using heroku pip
> install.
>
>
>
>
> Charlotte Wood, MEd
>
> Educator
>
> (405) 578-5701
>
> Zoom Meeting ID#: 4055785701
>
> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912
>
> Classroom Google Site:
> https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home
>
> Epic Technical Support: (405) 652-0935
>
>
>
> Jordan McKesson Principal
>
> 405-749-4550 ext. 309
>
> jordan.mckes...@epiccharterschools.org
>
>  
> 
> 
>
>
>
>
> On Wed, Jun 26, 2019 at 12:07 PM Sithembewena L. Dube 
> wrote:
>
>> It sounds like the package django-filters is not installed on your Heroku
>> environment.
>>
>> Do you have a dependency file suck as a Pipfile or requirements.txt? If
>> you do, you will need to install all dependencies listed there on your
>> Heroku server (at least those you need for production use).
>>
>> Kind regards,
>> Lloyd
>>
>>
>> *Sent with Shift
>> *
>>
>> On Wed, Jun 26, 2019 at 6:53 PM Charlotte Wood <
>> charlotte.w...@epiccharterschools.org> wrote:
>>
>>> The only error I keep seeing is "No Module Found" for django-filters
>>>
>>> But, I don't understand why it runs perfectly on my local host, every
>>> single page, then heroku just hates django filters.  I was hoping someone
>>> else had the same issues and remembered.  But, I will follow up with the
>>> error logs in a sec.  Thanks ya'll!!
>>>
>>>
>>>
>>> Charlotte Wood, MEd
>>>
>>> Educator
>>>
>>> (405) 578-5701
>>>
>>> Zoom Meeting ID#: 4055785701
>>>
>>> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912
>>>
>>> Classroom Google Site:
>>> https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home
>>>
>>> Epic Technical Support: (405) 652-0935
>>>
>>>
>>>
>>> Jordan McKesson Principal
>>>
>>> 405-749-4550 ext. 309
>>>
>>> jordan.mckes...@epiccharterschools.org
>>>
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>>
>>>
>>> On Wed, Jun 26, 2019 at 11:13 AM Sithembewena L. Dube 
>>> wrote:
>>>
 Hi Charlotte,

 What sort of error do you see?

 Also, have your checked your logs on Heroku?

 Lastly, if you have a sandbox on Heroku, you could run the site there
 in debug mode to get more specific error information.

 Kind regards,
 Lloyd


 *Sent with Shift
 *

 On Wed, Jun 26, 2019 at 5:59 PM Charlotte Wood <
 charlotte.w...@epiccharterschools.org> wrote:

> I need help.
>
> I've followed the directions to a "T."
>
> 1.  My site works PERFECTLY on my local host in my virtual
> environment.  NO errors, migrates fine, runs fine and looks beautiful.
>
> 2.  BEFORE I added Django-filters to my pages, it worked GREAT on
> Heroku.
>
> 3.  AS SOON as I put the DJango_filters in it, BOOM, Heroku won't run
> it.  I can find literally no documentation except for the textbook info
> from DJango, which doesn't troubleshoot at all.
>
> Has anyone had this trouble already?
>
> I have to get this up and running!
>
> ANY suggestions would be helpful.  ANY.
>
>
> Charlotte Wood, MEd
>
> Educator
>
> (405) 578-5701
>
> Zoom Meeting ID#: 4055785701
>
> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912
>
> Classroom Google Site:
> 

Re: Heroku and DJango_Filters

2019-06-26 Thread Fabio C. Barrionuevo da Luz
Is very hard to help you without the full traceback of the errors.
run:

heroku logs

put the output into https://gist.github.com/

and send the generated link.

ps: make sure you remove from the traceback any line related to password,
api keys

Many years ago, they recommended me to read this text here
http://www.catb.org/esr/faqs/smart-questions.html.
(although it does not agree with some parts of it, it gives you an idea of
how to elaborate questions to make it easier for volunteers to help you)




Em qua, 26 de jun de 2019 às 12:59, Charlotte Wood <
charlotte.w...@epiccharterschools.org> escreveu:

> I need help.
>
> I've followed the directions to a "T."
>
> 1.  My site works PERFECTLY on my local host in my virtual environment.
> NO errors, migrates fine, runs fine and looks beautiful.
>
> 2.  BEFORE I added Django-filters to my pages, it worked GREAT on Heroku.
>
> 3.  AS SOON as I put the DJango_filters in it, BOOM, Heroku won't run it.
> I can find literally no documentation except for the textbook info from
> DJango, which doesn't troubleshoot at all.
>
> Has anyone had this trouble already?
>
> I have to get this up and running!
>
> ANY suggestions would be helpful.  ANY.
>
>
> Charlotte Wood, MEd
>
> Educator
>
> (405) 578-5701
>
> Zoom Meeting ID#: 4055785701
>
> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912
>
> Classroom Google Site:
> https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home
>
> Epic Technical Support: (405) 652-0935
>
>
>
> Jordan McKesson Principal
>
> 405-749-4550 ext. 309
>
> jordan.mckes...@epiccharterschools.org
>
>  
> 
> 
>
>
> --
> 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/CAPZR0N4O0MorKsihVqZzbNmsrkptZgo2tqy_NfGUi%2BnF0_mZ6A%40mail.gmail.com
> 
> .
> 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/CAPVjvMYjujffJpGOwhBy_g2jaDRok1JiX5B376ifP8GgWOZ8%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


how to programmatically get the index name of a model field on a migration of django 1.8

2018-06-29 Thread Fabio C. Barrionuevo da Luz
Hello, I need to delete an index created automatically by Django, from a
third-party application and my own django apps, for later I recreate the
index optimized way.

this django application is used in several companies.
so I need to distribute these improvements via django migration.


I'm using raw sql in a RunPython migration, to delete and create the
optimized index.

in django 1.8, there is a deterministic way to I previously know what the
index name is generated for a given model field or django has a python
function/method to get this information?



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


Re: Deploy on Heroku

2018-06-27 Thread Fabio C. Barrionuevo da Luz
The error is explicitly here:

django.core.exceptions.ImproperlyConfigured: sets the REDIS_URL
environment variable


that is, you have not enabled the Redis plugin in Heroku.

As shown in the cookiecutter-django tutorial, it's just you, inside the
folder of your project, run:

heroku addons:create heroku-redis:hobby-dev





2018-06-27 9:03 GMT-03:00 Elias Coutinho :

> Good Morning,
>
> Following the deploy model of this tutorial
> ,
> I was not successful.
>
> Below the traceback of the terminal and then the heroku logs.
>
>
> Where did I go wrong? I did not identify what the message meant.
>
>
> 
>
>
> 
>
> --
> 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/1c90951d-8a49-40be-b100-a584a19df446%40googlegroups.com
> 
> .
> 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/CAPVjvMYsSTJ1P163JxHqY%3DT24zhGZEnR-hzZkznyeH8FVaGMLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using other schema in PostgeSQL

2018-04-06 Thread Fabio C. Barrionuevo da Luz
This is a very old issue:


https://code.djangoproject.com/ticket/6148

https://code.djangoproject.com/ticket/7556

https://code.djangoproject.com/ticket/22673

I do not know if there is someone working on ORM and Migrations to fix this
issue.

I've seen something like this somewhere, but I do not know if it works.

class MyTable(models.Model):
# ...
class Meta:
db_table = '"correo"."mytable"'




That said, I've seen some projects that implement multi-tenancy with
Postgres Database Schemas support, but not their what black magic they use
to make it work.

I personally have never used it.

https://bitbucket.org/schinckel/django-boardinghouse

https://github.com/tomturner/django-tenants

https://github.com/bernardopires/django-tenant-schemas




2018-04-06 21:28 GMT-03:00 Michel Vega Fuenzalida :

> Hello people,
>
> I'm using PostgeSQL not using the public schema but a different one named:
> 'correo', I need to tell Django to use the that schema (I have deleted the
> public schema)
>
> Thanks
> --
> Michel Vega Fuenzalida
> Usuario Linux: 323650
>
> --
> 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/DDE1CD0F-2A03-467A-81EF-6E6AC958017F%40nauta.cu.
> 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/CAPVjvMa2geTnupm%3DQFX-f-AeEO6peG0z5GZ7nr60kEEf7nGXhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.11 and PostgreSQL 10 compatibility

2017-10-26 Thread Fabio C. Barrionuevo da Luz
Psycopg 2.7.3.2 was released with Postgresql 10 support

http://initd.org/psycopg/articles/2017/10/24/psycopg-2732-released/



2017-10-22 3:54 GMT-03:00 Edandweb :

> Thanks
>
> On Thursday, 19 October 2017 12:27:50 UTC+3, Edandweb wrote:
>>
>> Hi,
>>
>> I am developing a new application in Python and Django, for the database
>> we want to use the last version of PostgreSQL v10.
>> The django Documentation says in https://docs.djangoproject.com
>> /en/1.11/ref/databases/#postgresql-notes:
>>
>>
>>
>> *Django supports PostgreSQL 9.3 and higher. psycopg2
>>  2.5.4 or higher is required, though the latest
>> release is recommended.*I am not sure to understand, it's just 9.3 and
>> higher like 9.3.1 or 9.3.2 or 9.3.4 ... or can we use 9.4 and 9.5 ... ?
>>
>> 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/ms
> gid/django-users/7b9054e5-bd0e-4eff-a8e9-9d98fab5bd38%40googlegroups.com
> 
> .
> 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/CAPVjvMYs6XY8SzYOCZ72AWyR8%2BRe7d6Jw5Rvk4qhMXHZQaWMxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: There is any way to prevent cascade delete on FK field, without using signal?

2017-10-03 Thread Fabio C. Barrionuevo da Luz
explicitly define what to do when there is a deletion.

use the "on_delete" parameter of ForeignKey/OneToOneField

on django <=1.11, on_delete is optional, and its default value is CASCADE.

after django >- 2.0, it is mandatory to set "on_delete"


https://docs.djangoproject.com/en/1.11/ref/models/fields/#django.db.models.ForeignKey.on_delete

https://medium.com/@ajrbyers/django-fk-on-delete-defaults-to-cascade-1c1506aae7c7


2017-10-03 13:28 GMT-03:00 Fellipe Henrique :

> There is any way to prevent cascade delete on FK field, without using
> signal?
>
> I need to block the Delete process, not to set NULL on field..
>
> Regards!
>
>
> T.·.F.·.A.·. S+F
> *Fellipe Henrique P. Soares*
>
> e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \
> 's/(.)/chr(ord($1)-2*3)/ge'
> *Fedora Ambassador: https://fedoraproject.org/wiki/User:Fellipeh
> *
> *Blog: *http:www.fellipeh.eti.br
> *GitHub: https://github.com/fellipeh *
> *Twitter: @fh_bash*
>
> --
> 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/CAF1jwZH4s%3DSnCaS3hqCiZPQd%
> 3D4vvZPYU1EH7oEp1ixpNrg5ERw%40mail.gmail.com
> 
> .
> 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/CAPVjvMbA6Y%3DP8jKQr_MNRNBSXNXo8hoyxtrC%3DdXF3hMziDPhDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mark as deleted instead of actually deleting in DeleteView

2017-09-21 Thread Fabio C. Barrionuevo da Luz
try use : SoftDeletableModel and SoftDeletableManager of django-model-utils

https://django-model-utils.readthedocs.io/en/latest/models.html#softdeletablemodel
https://django-model-utils.readthedocs.io/en/latest/managers.html#softdeletablemanager

https://github.com/jazzband/django-model-utils/blob/master/model_utils/models.py#L113-L136
https://github.com/jazzband/django-model-utils/blob/master/model_utils/managers.py#L277-L318





2017-09-21 6:39 GMT-03:00 Rakhee Menon :

> Hello Everyone ,
> Can anyone tell me how to write views where, when clicked  on delete
> button the data shouldn't get deleted only the flag should turn 0
>
> --
> 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/133d2433-2902-4856-a4e9-8800363db0ff%40googlegroups.com
> 
> .
> 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/CAPVjvMbe46w4HdaWZcJEepcRp1egQeo3fZHNokYtubq3e97ezw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Fluent interface on custom methods of custom Queryset class

2017-07-19 Thread Fabio C. Barrionuevo da Luz
What is the right way to make Fluent interface on custom methods of custom
Queryset class?

In other words, how to make "by_validity" work without lost previous
filters?

Procedure.objects.filter(is_active=False).by_validity()


I've tried using q = self or q = self.query before apply
Q(start_date__lte=start_date) & (Q(end_date=None) |
Q(end_date__gte=end_date)) , But it did not work, I got errors.

Thanks.

sample code:

from datetime import date, datetime, time
from django.conf import settings
from django.db import models
from django.db.models import Q


class ProcedureQuerySet(models.QuerySet):
def by_validity(self, start_date=None, end_date=None):
if not start_date:
start_date = date.today()
if start_date and not end_date:
end_date = start_date
if end_date < start_date:
raise ValueError("end_date must be greater than start_date")

start_date = datetime.combine(start_date, time.min)
end_date = datetime.combine(end_date, time.max)


q = Q(start_date__lte=start_date) & (Q(end_date=None) |
Q(end_date__gte=end_date))
return self.filter(q)

class ProcedureManager(models.Manager.from_queryset(ProcedureQuerySet)):
pass


class Procedure(models.Model):
start_date = models.DateTimeField()
end_date = models.DateTimeField(null=True)
is_active = models.BooleanField(default=True)

objects = ProcedureManager()



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


JSONField on Django 1.8

2017-06-27 Thread Fabio C. Barrionuevo da Luz
Hello, does anyone know of any good Django 1.8 compatible backport of
Django 1.9 > JSONField?

I would like to use JSONField and ORM query lookups, however it still was
not allowed by my employer to migrate to the new version of Django.


-- 
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/CAPVjvMYSSpk%3DsvqjOqCPxGHByb37VmkKYd-ocSqfENNbAxDJoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-08 Thread Fabio C. Barrionuevo da Luz
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  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+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/63d353bb-8ef6-4c15-ba79-eb6ce9b80023%40googlegroups.com
> 
> .
>
> 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/CAPVjvMZGdpxQanwxLLANABY_bydJuas-7mmX%3D49mQtuf7BwmLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Chart library for django

2017-03-06 Thread Fabio C. Barrionuevo da Luz
another option:

https://github.com/agiliq/django-graphos

https://github.com/agiliq/django-graphos#charting-api-supported


live sample: http://agiliq.com/demo/graphos/





On Mon, Mar 6, 2017 at 2:15 PM, acheraime .  wrote:

> In one of my project I've used django-nvd3 (https://github.com/areski/
> django-nvd3). It's a python/django abstraction layer to d3.js.
>
> On Mon, Mar 6, 2017 at 12:03 PM, Melvyn Sopacua 
> wrote:
>
>> On Monday 06 March 2017 12:04:16 Vijay Khemlani wrote:
>>
>> > Rendering server-side charts is usually a mess, and the result
>>
>> > (usually a static image) is not as good as using a JS library.
>>
>>
>>
>> Well first - I count 10 of that grid without looking at details that use
>> JS to render. So that's the majority. Secondly, even if we were rendering
>> graphs at the server - that is a matter of choice each with its own pro's
>> and cons.
>>
>> Yes, JS graphs, especially those that are canvas based have come a long
>> way in rendering capabilities. But the quality for the end user is
>> unpredictable as is the performance, whereas the server has predictable and
>> manageable resources - what is more important is defined by the project
>> requirements.
>>
>>
>>
>> Display quality of server side generated images may exceed JS rendered,
>> depending on how far you're willing to take the rendering. The cost of
>> sending a graph is that has not altered its data can be minimized with
>> server side caching techniques such as nginx's proxy_store directive.
>>
>>
>>
>> > It also encourages separation of concerns between the frontend and
>>
>> > backend
>>
>>
>>
>> But there are concerns that are tied together:
>>
>> - the data, duh
>>
>> - graph type often depending on data
>>
>> - title, legend, labels
>>
>>
>>
>> All this is dictated by the content at the server and has to be injected
>> into js via template rendering. The packages in that grid aim to do just
>> that (and I cound 3 that use highcharts).
>>
>> --
>>
>> Melvyn Sopacua
>>
>> --
>> 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/ms
>> gid/django-users/4339883.fqjLW2Zd6i%40devstation
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
>
> *Adolphe CHER-AIME*
>
> --
> 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/CA%2BfkitLEDOrsajbaqThJH1RvL3QB5K
> id12Onj4-LFMqZLMEO8A%40mail.gmail.com
> 
> .
>
> 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/CAPVjvMaPHZdNCiVr973TUuQyUQ88EHRMw8nYTuEnT29DHsTwGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Criar aquivo urls.py

2016-12-19 Thread Fabio C. Barrionuevo da Luz
uai, desde que arquivos python simplesmente são arquivos de texto, abra um
editor de texto como o Notepad++, Gedit, SublimeTex e crie o arquivo com o
nome urls.py e coloque dentro dele o código relativo as urls...


Talvez você deva explicar melhor quais os problemas que você está tendo

On Mon, Dec 19, 2016 at 5:42 PM, Itamar Junior  wrote:

> Olá galera,
>
> sou no django, como posso fazer para criar um arquivo urls.py?
>
> Obrigado.
>
> --
> 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/fddd64aa-1c85-41fd-8e5b-ce4d8fd233f9%40googlegroups.com
> 
> .
> 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/CAPVjvMYjsWBxjfs4waG_iwkbupaRMZcRDqdkmXaQ5uKk%3DapQNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Phone number field in form/ model

2016-12-14 Thread Fabio C. Barrionuevo da Luz
Use CharField and try to find on
https://django-localflavor.readthedocs.io/en/latest/ a Phone form Field for
valid to you country or create

Or create your own PhoneFormField with the validation rules that you need

Implementation example:
https://github.com/django/django-localflavor/blob/master/localflavor/br/forms.py#L38-L58


On Wed, Dec 14, 2016 at 4:36 PM, Sithembewena Lloyd Dube 
wrote:

> Hi,
>
> Has anyone captured phone number information using a Form/ModelForm
> instance? I have the field as an IntegerField in my model and (for obvious
> reasons) it truncates the leading '0'. How have you solved this problem,
> anyone?
>
> --
> Regards,
> Sithembewena
>
> --
> 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/CAH-SnCD_zD980PLhau2eoGrKYy22%2BCorCB%
> 2Bu%2BR5MwFUoY0rDhg%40mail.gmail.com
> 
> .
> 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/CAPVjvMatX%2B2uV0JnZa7pYn_Af_n1kCkJOQKuQf0iPq_gvW3CVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error with Tutorial - Writing your first Django app, part 1

2016-12-09 Thread Fabio C. Barrionuevo da Luz
Missing comma on you urlpatterns


urlpatterns = [
url(r'^polls/', include('polls.urls'))* ,*
url(r'^admin/', admin.site.urls),
]




On Fri, Dec 9, 2016 at 4:10 PM, shah  wrote:

> Hi, I am facing the same issue with the tutorial.
>
> I have got my program correct. But after running the sever. It shows an
> error on chrome.
>
> Page not found (404)
> Request Method: GET
> Request URL: http://localhost:8000/polls/
>
> Using the URLconf defined in mysite.urls, Django tried these URL
> patterns, in this order:
>
>1. ^admin/
>
> The current URL, polls/, didn't match any of these.
>
> You're seeing this error because you have DEBUG = True in your Django
> settings file. Change that to False, and Django will display a standard
> 404 page.
>
> Since this is first ste of tutorial. I am not able to move forward. Thanx
> for rely in advance.
>
> On Tuesday, 11 October 2016 02:12:30 UTC+5:30, Johnny McClung wrote:
>>
>> I am getting an error when I try to run the Django server.
>>
>> >> mysite >> polls >> urls.py
>> from django.conf.urls import url
>>
>>
>> from . import views
>>
>> urlpatters = [
>> url(r'^$', views.index, name='index'),
>> ]
>>
>>
>>
>>
>> >> mysite >> mysite >> urls.py
>> from django.conf.urls import include, url
>> from django.contrib import admin
>>
>> urlpatterns = [
>> url(r'^polls/', include('polls.urls'))
>> url(r'^admin/', admin.site.urls),
>> ]
>>
>>
>>
>> Error:
>>
>> E:\Dropbox\Python Scripts\mysite>python manage.py runserver
>> Performing system checks...
>>
>> Unhandled exception in thread started by > check_errors..wrapper at 0x03F616A8>
>> Traceback (most recent call last):
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\utils\autoreload.py", line 226, in wrapper
>> fn(*args, **kwargs)
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\core\management\commands\runserver.py", line 121,
>> in inner_run
>> self.check(display_num_errors=True)
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\core\management\base.py", line 374, in check
>> include_deployment_checks=include_deployment_checks,
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\core\management\base.py", line 361, in _run_checks
>> return checks.run_checks(**kwargs)
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\core\checks\registry.py", line 81, in run_checks
>> new_errors = check(app_configs=app_configs)
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\core\checks\urls.py", line 14, in check_url_config
>> return check_resolver(resolver)
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\core\checks\urls.py", line 24, in check_resolver
>> for pattern in resolver.url_patterns:
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\utils\functional.py", line 35, in __get__
>> res = instance.__dict__[self.name] = self.func(instance)
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\urls\resolvers.py", line 313, in url_patterns
>> patterns = getattr(self.urlconf_module, "urlpatterns",
>> self.urlconf_module)
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\utils\functional.py", line 35, in __get__
>> res = instance.__dict__[self.name] = self.func(instance)
>>   File "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib
>> \site-packages\django\urls\resolvers.py", line 306, in urlconf_module
>> return import_module(self.urlconf_name)
>>   File 
>> "C:\Users\geek\AppData\Local\Programs\Python\Python35-32\lib\importlib\__init__.py",
>> line 126, in import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>   File "", line 986, in _gcd_import
>>   File "", line 969, in _find_and_load
>>   File "", line 958, in
>> _find_and_load_unlocked
>>   File "", line 673, in _load_unlocked
>>   File "", line 661, in exec_module
>>   File "", line 767, in get_code
>>   File "", line 727, in
>> source_to_code
>>   File "", line 222, in
>> _call_with_frames_removed
>>   File "E:\Dropbox\Python Scripts\mysite\mysite\urls.py", line 21
>> url(r'^admin/', admin.site.urls),
>>   ^
>> SyntaxError: invalid syntax
>>
>>
>> Any help would be appreciated. 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 

Re: Django Docs not returning search results - 1.10

2016-11-17 Thread Fabio C. Barrionuevo da Luz
kivy-django is not a Django Software Foundation project and i don't know
who is creator and owner of this project


-- 

Fábio C. Barrionuevo da Luz

Em 17/11/2016 06:23, "Sayth Renshaw"  escreveu:

> Hi
>
> Trying to check if this is an odd problem I am expereincing or there is an
> issue.
>
> I have tried searching the django docs for Kivy in regards to the
> https://pypi.python.org/pypi/kivy-django/1.9.1 package which refers to
> the docs for further information.
> Search terms used:
> kivy
> kivy-django
>
> Both return a header advising 370 results "370 results for *kivy-django* in
> version 1.10". There is however no actual search results displaying below.
> Tried on Firefox and chrome on multiple computers and chrome on android
> phone all the same.
>
> Any ideas whats occurring?
>
> Sayth
>
> --
> 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/cb578d5d-3796-48fa-b1d5-a1f959dd78b3%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/CAPVjvMat2V%2BU%3Dgejs8KqERmeUbdePYiDTqQY-tiZE5CdKXgBbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to create Xlm file in specific folder ?

2016-08-10 Thread Fabio C. Barrionuevo da Luz
Dear Asad,

Ludovic Coues has already answered your question.

simply create a new file and save the content in it:


from django.template.loader import render_to_string

xml_content =
render_to_string('my_xml_template_with_django_template_variables.xml',
{'foo': 'bar'})

file_path = '/etc/freeswitch/sip_profiles/external'  # this is not the best
way to indicate the file.

with open(file_path, 'w') as the_file:
the_file.write(xml_content)


probably the python process must be running on a linux user with
permissions to write to the folder you want to create the file.

operations in harddisk are usually expensive (because HD is usually
thousands of times slower than RAM memory), and depending on how you
program it can also be dangerous.

to this question, you could create a post_save signal, which starts a task
in Celery, which will create the xml file.

said that, all here are busy people. We have bills to pay.
If you want to help, the least you can do is try to write your question so
try to help us give you an answer that is useful for you.

learn how to ask questions to facilitate get a useful answer, it is
important part of learning information technology and in life in general.


When I was starting, this text helped me a lot, gave me a lot of cool tips
on how to ask questions:

http://www.catb.org/esr/faqs/smart-questions.html

good studies :-)



On Wed, Aug 10, 2016 at 9:31 AM, Asad ur Rehman 
wrote:

> *M Hashmi* its Ok Next i will try to Post question that you can
> easily understand.
>
> --
> 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/828d31a2-6a8b-4e13-aa6f-bed78ea0a620%40googlegroups.com
> 
> .
>
> 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/CAPVjvMYVBFqFW5cMQNZpomf8%3DxmASrKfQk2qO-GGOL2rncVt%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adding custom Template downloaded

2016-08-08 Thread Fabio C. Barrionuevo da Luz
Please, explain step by step, what and how you do to get "template" from
github.

That said, when I was starting out in the world of information technology,
this text gave me several useful tips on how to ask questions in order to
have more chances to get a satisfactory answer:

http://www.catb.org/esr/faqs/smart-questions.html

-- 

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



Em 08/08/2016 13:41, "Timothy Steele" 
escreveu:

>
> Please What I am Talking about is this
> i have download  a template from www.github.com, but i can not configure
> it and i need a help please
>
> On Monday, August 8, 2016 at 2:55:23 PM UTC+1, Timothy Steele wrote:
>>
>> I want to get  a step by step process on how to add a django template
>> downloaded
>> so that i can over ride the default template that django give to me by
>> default
>> Please any help
>>
>> 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/ms
> gid/django-users/763aeb71-5e3d-4b5b-95a5-ec06bbf90a43%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/CAPVjvMZJsCW4-QXEadNV2a63_Lz3%3DHy9cp45wFH9vd9AfsYTxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Disabling migrations when running tests

2016-07-16 Thread Fabio C. Barrionuevo da Luz
try this library:

https://github.com/henriquebastos/django-test-without-migrations/



On Sat, Jul 16, 2016 at 7:20 PM, James Schneider 
wrote:

> >>
> >> Could you explain what you mean by running tests?
> >
> >
> > Yes. I'm talking about "manage.py test".
> >
> > The docs says:
> > "New in Django 1.8 [...]  If the database does not exist, it will first
> be created. Any migrations will also be applied in order to keep it up to
> date."
> >
> > Source:
> https://docs.djangoproject.com/en/1.9/topics/testing/overview/#the-test-database
>
> >
> >
> > I don't need automatically created test databases nor migrations
> applied. Can I disable this?
> >
>
> I don't know of a way to do so. You're probably better off using a
> separate test suite than relying on manage.py to handle the setup of the
> testing environment for you.
>
> Out of curiosity, are you not testing anything database-related? I'm not
> sure how you expect your test suite to be valid if your database is not
> initialized correctly.
>
> -James
>
> --
> 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/CA%2Be%2BciWH_QWWU1AadSup--haNKPMiJ48gB6Q-djX6zTH4xJf1g%40mail.gmail.com
> 
> .
>
> 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/CAPVjvMZTF71nEK-%2B6gEs9xNF0S68EYLUc60Y8qzCrj8UoX8vVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is this behavior with Meta Ordering and Group By expected?

2016-06-29 Thread Fabio C. Barrionuevo da Luz
Hi Eric.

This is the expected behavior (
https://docs.djangoproject.com/en/dev/ref/models/options/#ordering ).

If ordering is defined on model Meta, the ORDER BY SQL is included by
default in all query.

to avoid this behavior, you can use order_by() without parameters:

eg:

A.objects.order_by().values('b').annotate(most_recent=Max('created_at'))



On Wed, Jun 29, 2016 at 5:39 PM, eric conner  wrote:

> Hello!
>
> I'm using Django 1.9.7, MySQL innodb 5.7.11, and python 2.7.10.
>
> I noticed some strange behavior when running this query:
> q = A.objects.values('b').annotate(most_recent=Max('created_at'))
>
> Produces this SQL:
> SELECT `core_a`.`b_id`, MAX(`core_a`.`created_at`) AS `most_recent` FROM
> `core_a` GROUP BY `core_a`.`id` ORDER BY `core_a`.`id` ASC
>
> which groups by an unexpected field.  I was expecting it to group by
> `core_a`.`b_id` rather than `core_a`.`id`.
>
> Here are my models:
> from __future__ import unicode_literals
>
> from django.db import models
> from django.utils import timezone
>
>
> class B(models.Model):
> created_at = models.DateTimeField(default=timezone.now)
>
>
> class A(models.Model):
> created_at = models.DateTimeField(default=timezone.now)
> b = models.ForeignKey(B)
>
> class Meta:
> ordering = ["id"]
>
>
> If I remove from model A these lines
> class Meta:
> ordering = ["id"]
> then the query produces SQL which groups by the b_id column as expected.
>
> Is this known behavior?  Would this be considered a bug?
>
> Thanks,
> -Eric
>
> --
> 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/d06683cc-ea7b-43db-a23b-0ebbd19bd424%40googlegroups.com
> 
> .
> 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/CAPVjvMaSmDmiJHmj%2B5B8-tVLsF0jpS0JCVDe62BLr3pqTfDW5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTTP2 Server Push with Django?

2016-06-28 Thread Fabio C. Barrionuevo da Luz
as far as I know, there is still no any web server that fully implements
the "push" capability from HTTP2 specification.

let me know if any web server now implements "push" capability completely

On Tue, Jun 28, 2016 at 9:46 AM, Bobby Mozumder  wrote:

> Does anyone know of an http/2 server with server push capability that can
> work with Django?
>
> It looks like nginx supports http2 with uWSGI, but it doesn’t actually
> support server push capability.
>
> I also found the h2o server, but it doesn’t look like it supports uWSGI
> yet..
>
> Any other options out there for http2 server push, preferably with
> cache-aware server push?
>
> (I’d set http “Link” headers in my app to direct server push.)
>
> -bobby
>
> --
> 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/5A078BDA-0C9C-48E3-B7DC-56CA49434388%40gmail.com
> .
> 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/CAPVjvMYqcOq3cUR5UroSkJu%2BQBvOGG9uwBok9OvOpKz%2B%2BZDDMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Query and order by time difference of a specified time.

2016-05-23 Thread Fabio C. Barrionuevo da Luz
it would probably be better to use a custom "Func"[1] and a custom "Query
Expression" [2] than user QuerySet.extra

[1] https://docs.djangoproject.com/en/1.9/ref/models/database-functions
[2] https://docs.djangoproject.com/en/1.9/ref/models/expressions/



On Mon, May 23, 2016 at 11:16 AM, Ketan Bhatt  wrote:

> Take a look at the `extra` method of the queryset in Django. It allows you
> to do what you are trying to do by raw SQL.
>
>
> https://docs.djangoproject.com/en/1.9/ref/models/querysets/#django.db.models.query.QuerySet.extra
>
> Check the above link, the example with `annotate` will be interesting for
> you.
>
> I think your aim should be to create a new field and then do a `order_by`
> and `first`.
>
> --
> 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/5b556c8b-2012-4bd7-89c5-bddbbdb4c3b9%40googlegroups.com
> .
> 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/CAPVjvMZ3UOnmK-ynRuuTZFZUO4hLp91ZPkthj%2BNLQT%3D5jtcvhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: run python function in output of annotated query

2016-03-31 Thread Fabio C. Barrionuevo da Luz
no specific reason. This value is later converted to json, and consumed by
javascript from Ajax call..

this was the simplest way I thought, without being obliged to rewrite an
one ton of code.

( yes it is a lovely project with spaghetti code, which I hope will one day
be authorized to rewrite it from scratch.  :-( )



On Thu, Mar 31, 2016 at 11:28 AM, Simon Charette 
wrote:

> Hi Fábio,
>
> Since the deprecation of `SubfieldBase`[1] you must implement a
> `from_db_value()`[2] method to convert the value as returned by the
> database
> to the correct Python object.
>
> Out of curiosity, is there a reason you are doing this the model level? It
> looks like something that belongs to the form or template layer.
>
> Cheers,
> Simon
>
>
> [1] https://docs.djangoproject.com/en/1.9/releases/1.8/#subfieldbase
> [2]
> https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.Field.from_db_value
>
>
> Le jeudi 31 mars 2016 10:15:38 UTC-4, Fabio Caritas Barrionuevo da Luz a
> écrit :
>>
>> Hello django-users,
>>
>> I have a unmanaged model, of legacy database, used only to read.
>>
>> I need to clean the value of a field returned in a annotated query.
>>
>> I try created a new model field inherits from TextField and override
>> to_python method to clean the value (remove all html using python-bleach),
>> and use in a query like:
>>
>> FooBar.objects.annotate(title=ExpressionWrapper(F('html_title'),
>> output_field=RemoveHTMLTextField())) .
>>
>> I expected the method to_python was called, but it does not.
>>
>> Any idea how to solve this problem?
>>
>> this is probably wrong, but it was the only way I thought so far
>>
>>
>> 
>> import bleach
>> from django.db import models
>> from django.template.defaultfilters import striptags
>> from django.utils.safestring import mark_safe
>>
>>
>> class RemoveHTMLTextField(models.TextField):
>> def to_python(self, value):
>> original_value = super(RemoveHTMLTextField, self).to_python(value)
>> striped_str = striptags(original_value)
>> return mark_safe(bleach.clean(striped_str))
>> 
>>
>>
>>
>>
>> --
>> 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/444e33cb-5f81-4339-a751-95e7314e3770%40googlegroups.com
> 
> .
> 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/CAPVjvMYQWDoGfuyqTk5SXEKPcx47YUnRQPicGy9htQxSwmdQhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


run python function in output of annotated query

2016-03-31 Thread Fabio C. Barrionuevo da Luz
Hello django-users,

I have a unmanaged model, of legacy database, used only to read.

I need to clean the value of a field returned in a annotated query.

I try created a new model field inherits from TextField and override
to_python method to clean the value (remove all html using python-bleach),
and use in a query like:

FooBar.objects.annotate(title=ExpressionWrapper(F('html_title'),
output_field=RemoveHTMLTextField())) .

I expected the method to_python was called, but it does not.

Any idea how to solve this problem?

this is probably wrong, but it was the only way I thought so far



import bleach
from django.db import models
from django.template.defaultfilters import striptags
from django.utils.safestring import mark_safe


class RemoveHTMLTextField(models.TextField):
def to_python(self, value):
original_value = super(RemoveHTMLTextField, self).to_python(value)
striped_str = striptags(original_value)
return mark_safe(bleach.clean(striped_str))





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


Re: Django Forms vs Angularjs

2016-03-22 Thread Fabio C. Barrionuevo da Luz
self.fields[name].widget.attrs['disabled'] = 'disabled'
self.fields[name].widget.attrs['readonly']=True

is not make real readonly to field, because if user can edit the html on
client side, and remove disabled="disabled" and readonly input atributtes

to problem of readonly fields, i currently use this:

https://github.com/luzfcb/django-simple-history/blob/wip-generic-views2/simple_history/forms.py


I prevent it here
https://github.com/luzfcb/django-simple-history/blob/wip-generic-views2/simple_history/forms.py#L24

Usage:

class FooBar(models.Model):
foo = models.TextField(blank=True)
bar = models.TextField(blank=True)

class MyFooBarForm(forms.ModelForm):
class Meta:
object = FooBar
fields = ('foo', 'bar')

class MyReadOnlyBarForm(ReadOnlyFieldsMixin, forms.ModelForm):
readonly_fields = ('bar')
class Meta:
object = FooBar
fields = ('foo', 'bar')

my_all_field_readonly_foobarForm = new_readonly_form_class(MyFooBarForm)

my_foo_field_readonly_foobarForm = new_readonly_form_class(MyFooBarForm,
readonly_fields=('foo',))


I do not know if this is the best approach, but it was what I got so far.





On Tue, Mar 22, 2016 at 10:57 AM, Gorkem Tolan 
wrote:

> Actually I do to set permission to each field. A field in the form can be
> viewable and editable, only viewable, or hidden.  So if user has a
> permission to see the form, but edit some fields in the form, it gets very
> tricky especially for validation.
> For example I used these statements to make readonly field :
> self.fields[name].widget.attrs['disabled'] = 'disabled'
> self.fields[name].widget.attrs['readonly']=True
> Then the problem rises not to be able send disabled fields in the post.
>
> On Tuesday, March 22, 2016 at 9:31:43 AM UTC-4, bobhaugen wrote:
>>
>> Maybe you already know this, but you can do a lot of form tinkering in
>> __init__, like so:
>>
>> def __init__(self, permissions_parameter=None, *args, **kwargs):
>> super(FormName, self).__init__(*args, **kwargs)
>> if permissions_parameter:
>> #do a bunch of form tinkering
>>
> --
> 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/877bb8f8-4b59-4353-a0e5-99e95f55811b%40googlegroups.com
> 
> .
>
> 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/CAPVjvMbZt1E3B7qORzVFY%3DsFg93J05Y-HUaFY8__T6P10W8eqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: mathematical function and django connect

2016-02-09 Thread Fabio C. Barrionuevo da Luz
these questions will be answered with the knowledge that you acquire after
after completing the official tutorial:

https://docs.djangoproject.com/en/1.9/intro/

and additionally, perhaps :

http://masteringdjango.com/introduction/

or

http://www.tangowithdjango.com/book17/



On Tue, Feb 9, 2016 at 6:22 PM, Xristos Xristoou  wrote:

> yeah my bad for the regext i know that with the full name btw,form its not
> nesecery to create ?
> my task is to copy paste my code in the view,create the regext,and connect
> on my templete ?only just ?
>
> hello,
>
>>
>>
>> i create some python mathematical function on python idle,
>> i want to create website where the user import value numbers on the
>> function
>> and take the results from that.
>> question one,how to connect my mathematical function on the django?
>> question two,how to connect input and output from the scipts in the
>> website ?
>> the second question i ask because input and output from the function is a
>> dynamic define from the user
>>
>>
>>
>> --
> 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/3db82847-7e0b-4194-909f-270f9bc2b3c8%40googlegroups.com
> 
> .
>
> 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/CAPVjvMZrHXGpNK63xs5EOY%3DmrcXwg%3DgsHXtHV4bRfDS8AREoxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: mathematical function and django connect

2016-02-09 Thread Fabio C. Barrionuevo da Luz
https://en.wikipedia.org/wiki/Regular_expression

https://docs.djangoproject.com/en/1.9/topics/http/urls/

https://regex101.com/#python



On Tue, Feb 9, 2016 at 5:41 PM, Xristos Xristoou  wrote:

> what is regext?
>
> Τη Τρίτη, 9 Φεβρουαρίου 2016 - 9:47:30 μ.μ. UTC+2, ο χρήστης Xristos
> Xristoou έγραψε:
>>
>> hello,
>>
>>
>> i create some python mathematical function on python idle,
>> i want to create website where the user import value numbers on the
>> function
>> and take the results from that.
>> question one,how to connect my mathematical function on the django?
>> question two,how to connect input and output from the scipts in the
>> website ?
>> the second question i ask because input and output from the function is a
>> dynamic define from the user
>>
>>
>>
>> --
> 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/1d0bb319-dbcb-4193-b646-0640225414c1%40googlegroups.com
> 
> .
>
> 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/CAPVjvMabSKOPkvH_Mbf3%3DR48Bo%3DBwJE%3DBkGxe0HY6bDmwn-Hag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Pessimistic concurrency control

2015-12-16 Thread Fabio C. Barrionuevo da Luz
Hi everyone!
anyone know of any other alternative to
https://github.com/RobCombs/django-locking , which implements "Pessimistic
concurrency control"

I need to avoid concurrent editing. while a user keep an open a editing
window (UpdateView), I can not let another user edit the same object

Thanks.


-- 
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/CAPVjvMZhzPr_g3g%3DVq0j43-6HO_N26S3x%3DjTNtwVJ1uOdTmacw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom date format stopped working in template

2015-12-10 Thread Fabio C. Barrionuevo da Luz
This is a bug that will be fixed in the next bugfix release django (1.8.8)

https://docs.djangoproject.com/en/1.9/releases/1.8.8/#bugfixes



2015-12-10 3:26 GMT-03:00 sandino :

> Hello,
>
> I have custom localized data formats (
> https://docs.djangoproject.com/en/1.8/topics/i18n/formatting/#creating-custom-format-files
> ) that I use in my template. After upgrading to 1.8.7 it stopped working
> (it shows something like
> 0MarchSunMarchX_th00+RUTC_SunAMUTCMarchUTC0MarMarch_March+RMarAMUTC).
> I think it has to do with this fix
> https://docs.djangoproject.com/en/1.8/releases/1.8.7/#fixed-settings-leak-possibility-in-date-template-filter
>
> My directory structure (there are few other languages besides):
>
> /project
>   __init__.py
>   /project_app
> __init__.py
> /formats
>   __init__.py
>   /en
> __init__.py
> formats.py
>
> formats.py:
>
> INDEX_SHORT_DATETIME_FORMAT = 'm/d H:i'
>
>
> settings.py:
>
> FORMAT_MODULE_PATH = ['myapp.formats']
>
>
>
> Is it a bug or my mistake?
>
> --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/dd554709-8283-4dc9-ae4c-d2168a3096f6%40googlegroups.com
> 
> .
> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMZEWD_vCr%3DBx7z2BZJ5LUZ2bUtiqnHEeSssTRjTnPcZrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


get all current active connected users

2015-12-09 Thread Fabio C. Barrionuevo da Luz
hello,
Django provide any API for get all users who are currently connected?

I need to run some scheduled tasks for users who are not connected and did
not understand how I can get the users with active login via Session

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMbRXkFEi95jL0is%3DNePz%3DSiAaHusSK1oJRei%3D-U%2B_jfGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Apps for versioning model fields

2015-06-29 Thread Fabio C. Barrionuevo da Luz
Hello, I need to implement versioning of a TextField to an electronic
system to manages documents.

Before I try to reinvent the wheel, I'd like to know what are the reusable
apps are available that solve this problem.

I have the following model class:
https://gist.github.com/luzfcb/226612d0b98dd4493f9d

I need versioning only the field 'content'

the type of versioning I need is much like the way it is implemented
versioning of articles on Wikipedia.

I'm trying to use django-reversion, however, I think it is not designed for
this use case.

Would you recommend me look any specific library? If so, what are the pros
and cons What do you think of it?

I appreciate the help in advance.


-- 
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins -
FACTO
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMZi%2BgRmiizHErzhCTiGouQNDAB9EENA3S0xS1hUKqnt3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


create unmanaged model to oracle view/synonym

2014-12-31 Thread Fabio C. Barrionuevo da Luz
Hello, is possible with Django 1.7 create a unmanaged Django model for
Oracle database View?

I succeeded in doing this using sqlalchemy, However, would like to use
Django and Django ORM.

-- 
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins -
FACTO
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMbnDZtRCU_2%2BW1D_V00jPJ0Ur6WsjM9Jzuj6bMfhp7gFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


not thread-safe function can break a django application?

2014-11-22 Thread Fabio C. Barrionuevo da Luz
I was trying to answer a question in a Brazilian forum about django.

one of the proposed solutions utilized the function locale.setlocale() from
locale module.

according to the documentation[1] locale.setlocale() function is not
thread-safe

the question is:

not thread-safe function can break a django application?
If so, how?
Which scenario I would have problems?
some easily reproducible example of problems using not thread-safe function?


[1] https://docs.python.org/2/library/locale.html#locale.setlocale

--
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins -
FACTO
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMaDcpZ0YE-v4tLwcRk6CJMDXVrt53fFMYfCN01NgyG94A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


django-admin2 into production environment

2014-10-07 Thread Fabio C. Barrionuevo da Luz
hello, I wonder if anyone successfully uses the django-admin2[1] in the
production environment

If so, what are your thoughts on the pros and cons based on your experience
of use.

You have a site or blog which records the problems and solutions
encountered when using and customize django-admin2

Your use case would be very useful for me.


[1] https://github.com/pydanny/django-admin2


Thanks
-- 
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins -
FACTO
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMZ0f2iSVrFN9-X%3D1sb1pKdw%2Bzpq2TGVN%3D5HOwK-2yH%2B5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Behavior of the "update" in Django 1.7

2014-09-22 Thread Fabio C. Barrionuevo da Luz
Hello. Some questions.

Walking through projects on github i found django-save-the-change[1]

Interesting project. But what django-save-the-change[1] proposes to do is
still valid for Django 1.7?

I think it would be good practice to only touch in the fields in the
database in which there really was a change.

Using or not using this solution, makes difference in performance when I
have millions of transactions per minute in the database?

[1] https://github.com/karanlyons/django-save-the-change

-- 
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins -
FACTO
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMaHL_wEAd-widOC3wxv%2BHcivCP47USMoEMHg5jm9Dmssg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


interesting project: django-crucrudile

2014-06-26 Thread Fabio C. Barrionuevo da Luz
https://github.com/pstch/django-crucrudile



-- 
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins -
FACTO
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMaVKMdSvg_HQ6Jx8R3gGHR_j7rGw2hnFKFRvS2UXtAu%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[OT] Web application and image scanner

2014-05-28 Thread Fabio C. Barrionuevo da Luz
Anyone know any client-side alternative to Java and Java Applets in a Web
application to capture images from Network or USB scanner and send to
server somehow (WebDAV, HTTP POST FILE, or other way)?

-- 
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins -
FACTO
Palmas - Tocantins - Brasil - América do Sul

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMYYfW26cqRiU%3Drep-pPNe5baq5ZL7b7vU2nK%2BS_A3VR9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Where exactly in the django source code, the default permissions are created?

2013-12-19 Thread Fabio C. Barrionuevo da Luz
Hello guys, I'm trying to understand the inner workings of the permissions
django system.

My question is where exactly in the django source code, the default
permissions are created?


-- 
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins -
FACTO
Palmas - Tocantins - Brasil - América do Sul

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPVjvMaqZ4KpYmW6WwDdOeA5b4AD4_CG92Hhe3x7k9B_dKxTag%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.