Re: Changing the AdminSite instance (and class) to use BEFORE the autodiscover runs

2016-01-22 Thread Raffaele Salmaso
On Fri, Jan 22, 2016 at 11:38 PM, Luis Masuelli wrote: > I would like to create a custom AdminSite instance, using a custom > subclass of my own, and provide some project-level urls for the AdminSite. > However, I would like to still benefit from the autodiscover feature. > > Is there a way I can

Changing the AdminSite instance (and class) to use BEFORE the autodiscover runs

2016-01-22 Thread Luis Masuelli
I would like to create a custom AdminSite instance, using a custom subclass of my own, and provide some project-level urls for the AdminSite. However, I would like to still benefit from the autodiscover feature. Is there a way I can instance a custom AdminSite subclass, and have that instance r

Re: Where to put signal handler file ?

2016-01-22 Thread Benj
Answer: create a django app for such utility: you will be able to use app features decoupled from specific model On Friday, January 22, 2016 at 4:09:47 PM UTC+1, Benj wrote: > > Since I follow the recommended way of creating signal, I create a > signals.py file in a project's app, an app.py conf

Re: Code organisation

2016-01-22 Thread Benj
Yes, I didn't thought about creating a whole app for utilities, but it is indeed the way to go. Tks On Friday, January 22, 2016 at 4:20:55 PM UTC+1, Rafael E. Ferrero wrote: > > Maybe you find useful make your project into a reusable app look at this > https://docs.djangoproject.com/en/1.9/intro

The best approach for a customer restricted area

2016-01-22 Thread Miguel Pragier
Hi all. I was demanded to create an online service/portal in Django, and this is my first project in Django. Roughly, the portal should have two restricted areas: - Our ( operators/providers ) restricted area, supposed to be created with "admin" generator. - Our customer's restricted area, with

Re: Access denied for MySQL user in Django

2016-01-22 Thread James Schneider
On Fri, Jan 22, 2016 at 7:06 AM, Galil wrote: > That was helpful James, we are nearly there. > > You were right the output was "DB Password:", with an empty string. I > added my password as default value like: > > 'PASSWORD': os.environ.get('CDR_DB_PASSWORD', 'my_password_here'), > > but

Re: how many visitors has view my posts and how many visitors view my site

2016-01-22 Thread Xristos Xristoou
but i can the show how many people to view in my html template ? Τη Παρασκευή, 22 Ιανουαρίου 2016 - 5:02:46 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > hello, > > > i want to know how many people view my site and how many view one to one > my posts specific. > my site is simple i have tw

Re: how many visitors has view my posts and how many visitors view my site

2016-01-22 Thread Daniel Chimeno
I would say the same, use Google Analytics or another platform like Piwik El viernes, 22 de enero de 2016, 17:09:34 (UTC+1), Lucas Magnum escribió: > > Thought about using Google Analytics for that? > > []'s > > Lucas Magnum. > > 2016-01-22 13:02 GMT-02:00 Xristos Xristoou >: > >> hello, >> >> >>

Re: how many visitors has view my posts and how many visitors view my site

2016-01-22 Thread Lucas Magnum
Thought about using Google Analytics for that? []'s Lucas Magnum. 2016-01-22 13:02 GMT-02:00 Xristos Xristoou : > hello, > > > i want to know how many people view my site and how many view one to one > my posts specific. > my site is simple i have two templates one with all my post and one wit

Re: Code organisation

2016-01-22 Thread Rafael E. Ferrero
Maybe you find useful make your project into a reusable app look at this https://docs.djangoproject.com/en/1.9/intro/reusable-apps/ Cheers !! Rafael E. Ferrero 2016-01-22 11:30 GMT-03:00 Benjamin Melki : > Hello, > > i’m building my first site with this great framework and language that are >

Where to put signal handler file ?

2016-01-22 Thread Benj
Since I follow the recommended way of creating signal, I create a signals.py file in a project's app, an app.py config file, and initialize that in __init__. @receiver(pre_delete, dispatch_uid='document_delete_signal') But what if I don't want this to be tied to a specific app in the project,

Re: Access denied for MySQL user in Django

2016-01-22 Thread Galil
That was helpful James, we are nearly there. You were right the output was "DB Password:", with an empty string. I added my password as default value like: 'PASSWORD': os.environ.get('CDR_DB_PASSWORD', 'my_password_here'), but there is something really strange happening. When I use th

how many visitors has view my posts and how many visitors view my site

2016-01-22 Thread Xristos Xristoou
hello, i want to know how many people view my site and how many view one to one my posts specific. my site is simple i have two templates one with all my post and one with post details. but i dont know how to do that i am new in django. the start is to add a new field in my class view = mod

How do I override the default admin page permissions?

2016-01-22 Thread Jonty Needham
Currently I want to allow certain users access to a certain administrator page to allow or deny access for other users for a part of the tool. I have overridden has_permission to grant access, however it says that "You don't have permission to edit anything". I've since tried overriding has_add/

Code organisation

2016-01-22 Thread Benjamin Melki
Hello, i’m building my first site with this great framework and language that are Django and Python. I try as much as possible to favor code reuse. On one of my model, I do some work with the instance before saving it. Works is mostly image related: resizing image, compressing, saving thumbs, an

Re: django project exe

2016-01-22 Thread Rafael E. Ferrero
Do you already read this ? http://stackoverflow.com/questions/1317899/django-projects-as-desktop-applications-how-to Rafael E. Ferrero 2016-01-22 10:06 GMT-03:00 Carlos Andre : > It is a good idea even, except I already did with nginx, did not create a > file of those you mentioned going to do

Re: django project exe

2016-01-22 Thread Carlos Andre
It is a good idea even, except I already did with nginx, did not create a file of those you mentioned going to do, the problem is that my client is a layman and I would like this program to be executed as well as others he knows. But for security, I would like another way, only to have another path

Re: django project exe

2016-01-22 Thread Rafael E. Ferrero
Carlos, and why not install nginx or something in localhost? maybe you can do a little app to start or stop the service to connect or disconnect your application. if is only one machine you can do, it's not recommended, start and stop the buildin django server with your little .exe Rafael E. Fe

django project exe

2016-01-22 Thread Carlos Andre
Hi to all, i want do my project in django, run as exe in localhost. The motivation, the client who want this! Thanks to all! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send a

Re: like query django

2016-01-22 Thread Xristos Xristoou
look my version django cant not be use url 'like_post' because show me errow only 1.5 version django can use that Τη Τρίτη, 19 Ιανουαρίου 2016 - 5:35:09 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > hello, > > > i want to create a query for likes in my post details > > my html tags > > {{mo