Re: deploying djnago on apache

2014-08-12 Thread ngangsia akumbo
This is what i have for errors

   - yems@yems /var/log/apache2 $ ls
   
access.logerror.logother_vhosts_access.log
access.log.1  error.log.1  other_vhosts_access.log.1


static path


   - yems@yems /var/www/bluepearlhotel $ ls
   
blog  bluepearlhotel  event  gallery  home  images  manage.py  media  static

app listed are blog, event, gallery, home, images, a

and the project name is bluepearlhotel


i have also done the a2ensite bluepearlhotel.conf  it gave me this message


   - yems@yems /etc/apache2/sites-available $ a2ensite bluepearlhotel.conf
   
Site bluepearlhotel already enabled

the out pu of  /etc/apache2/sites-available



   - yems@yems /etc/apache2/sites-available $ ls
   
000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com



config files are not being read


There are no erros at the bluepearlhotel 


On Monday, August 11, 2014 4:52:11 PM UTC+1, Sanjay Bhangar wrote:
>
> hey Ngangsia, 
>
>
> On Mon, Aug 11, 2014 at 7:17 PM, ngangsia akumbo  > wrote: 
> > i have these configs 
> > 
> > project path 
> > yems bluepearlhotel # ls 
> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
>  static 
> > yems bluepearlhotel # 
> > 
> > 
> > cd /etc/apcahe2/sites-available 
> > 
> >  yems sites-available # ls 
> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com 
> > yems sites-available # 
> > 
>
> The config you are using here is testsite.com or bluepearlhotel.conf ? 
> Recently, apache changed their default config to only look for files 
> ending in .conf inside sites-available, iirc, so if your config is in 
> testsite.com, maybe its not reading your config at all. 
>
> > 
> > VirtualHost *:80> 
> > WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi 
> > 
> > ServerName  bluepearlhotel.com 
> > 
> > Alias /static /var/www/bluepearlhotel/static/ 
> > 
> >  
> > Order allow,deny 
> > Allow from all 
> >  
> > 
> >  
> >  
> > 
> > Require all granted 
> >  
> >  
> > 
>
> That *looks* okay. Can you add a couple lines for log files, and then 
> check those files to see if you get anything in the logs that maybe 
> helpful? Like this: 
>
>   ErrorLog /var/log/apache2/bluepearlhotel.com_error.log 
>   CustomLog /var/log/apache2/bluepearlhotel.com_access.log combined 
>
> Also, your /static alias seems off? Where exactly are your project 
> files? If your project folder is /home/yems/var/www/bluepearlhotel 
> your static path should probably be something like 
> /home/yems/var/www/bluepearlhotel/static or so? 
>
> Can you paste output of the command 'pwd' inside your project folder? 
>
> > 
> > 
> > yems@yems ~ $ ls 
> > bluepearlhotel.wsgi 
> > 
> > import os 
> > import sys 
> > sys.path = ['home/home/var/www/bluepearlhotel'] + sys.path 
> > os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings' 
> > import django.core.handlers.wsgi 
> > 
> > application = django.core.handlers.wsgi.WSGIHandler() 
> > 
> > when i browse 
> > 
> > www.bluepearlhotel.com 
> > it give me an empty page 
> > 
> > Please need help 
> > 
>
> Again, that *seems* okay, but perhaps you have something weird going 
> on with your paths. 
>
> I'd check the apache log files, one of two things could happen then: 
>
> 1> You don't see any errors for bluepearlhotel.com -- in this case, 
> your apache conf is probably not being read at all. Have you done 
> a2enmod on the vhost file? Can you check if there is an entry / 
> symlink inside /etc/apache2/sites-enabled/ (post output of 'ls 
> /etc/apache2/sites-enabled'). Then, first need to figure out why the 
> conf files is not being read. 
>
> 2> If the conf file is being read, you should see some errors. Those 
> errors should give you some more information about what's going wrong. 
> Paste those errors here and we can try and help you out. 
>
> Don't give up, lets figure this out :P 
>
> -Sanjay 
>

-- 
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/90e65b15-a61b-4318-a82f-2aa0f866e371%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin options are just ignored

2014-08-12 Thread somenxavier
Yes, it's.
Thank you very much.

This is not in the documentation 

 
this way. Can anyone update this?

El dilluns 11 d’agost de 2014 21:03:31 UTC+2, Collin Anderson va escriure:
>
> it could be an issue with auto_now, as only the database should be 
> editing that field and it shouldn't be editable through the admin. 
>
> Try adding this to your ResguardAdmin: readonly_fields = 
> ['data_modificacio'] 
>

-- 
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/419c07c9-0008-4584-92cd-225e81b21569%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.7: ImportError: No module named .models

2014-08-12 Thread ngangsia akumbo
i have had this same erroe too but it happed that i include instead the 
module class name in the settings.py file

make sure u are having the name of the app in the settings.py file

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4cae3225-4abd-4ffc-b518-8ad9d2c2c57b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [melbourne-pug] OS license requirements

2014-08-12 Thread Tom Evans
On Tue, Aug 12, 2014 at 1:43 AM, Mike Dewhirst  wrote:
> Cross posting again to thank everyone for responding ...
>
> I'm going with LGPL.
>
> Oliver suggested I consider Mozilla Public License and part of a
> stackexchange conversation goes [1] ...
>
>> The major difference is how MPL / LGPL licensed code must be linked
>> into the project. MPL source code files can be directly copied into a
>> (possibly) proprietary software project (static linking), while LGPL
>> licensed code must be dynamically linked (loosely linked to the
>> possibly proprietary software project, so that end-users can switch
>> out the licensed software library for another version of the licensed
>> software library).
>
>
> ... but in the context of Python running in a server (IANAL) I can't see
> "linking" being applicable to the point where it would prevent the real
> objective of ensuring my source (modified or not) is available for the end
> user of the whole work. Running on someone else's server makes it moot and
> on the end-user's server it is fait accompli.

Affero GPL covers this. Bear in mind that each license that adds
protection also adds restrictions and reduces the potential number of
users. I love BSD licensed software, it is easy to integrate in to all
projects. LGPL software is usable in less projects, GPL in even less,
and Affero GPL is so restrictive I tend to rule it out without
consideration.

>
> Russ suggested staying within the big five and that was why I was leaning
> towards LGPL anyway. My thought was about who might be interested in helping
> if the license is breached. MSF or FSF? I assume FSF because that is their
> entire mission.
>

I very much doubt either of them would be particularly interested
beyond publicising the alleged breach for you. As the license holder,
responsibility for enforcement would belong to you.

Cheers

Tom

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


Re: deploying djnago on apache

2014-08-12 Thread Sanjay Bhangar
On Tue, Aug 12, 2014 at 2:41 PM, ngangsia akumbo  wrote:
> This is what i have for errors
>
> yems@yems /var/log/apache2 $ ls
>
> access.logerror.logother_vhosts_access.log
> access.log.1  error.log.1  other_vhosts_access.log.1
>

If you have not added a specific ErrorLog and CustomLog directive for
this vhost file (as per my previous email), apache will club all
access and error logs into the default access and error log files.

>
> static path
>
> yems@yems /var/www/bluepearlhotel $ ls
>
> blog  bluepearlhotel  event  gallery  home  images  manage.py  media  static
>
> app listed are blog, event, gallery, home, images, a
>
> and the project name is bluepearlhotel
>

You seemed to have your paths in your vhost conf as like
"/home/yems/var/ww/..." whereas your path seems to be /var/www/..
(without the /home/yems .. )

>
> i have also done the a2ensite bluepearlhotel.conf  it gave me this message
>
> yems@yems /etc/apache2/sites-available $ a2ensite bluepearlhotel.conf
>
> Site bluepearlhotel already enabled
>
> the out pu of  /etc/apache2/sites-available
>
>
> yems@yems /etc/apache2/sites-available $ ls
>
> 000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com
>
>
>
> config files are not being read
>

There seem to be several little silly things that could be the issue
here - its a bit hard to tell from out here - if you feel like, ping
me on chat (sanjayb on IRC/Freenode or my current email address on
google-chat) -- we can go over these things step by step and make sure
things are in order.

Cheers,
Sanjay


>
> There are no erros at the bluepearlhotel
>
>
> On Monday, August 11, 2014 4:52:11 PM UTC+1, Sanjay Bhangar wrote:
>>
>> hey Ngangsia,
>>
>>
>> On Mon, Aug 11, 2014 at 7:17 PM, ngangsia akumbo 
>> wrote:
>> > i have these configs
>> >
>> > project path
>> > yems bluepearlhotel # ls
>> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media
>> > static
>> > yems bluepearlhotel #
>> >
>> >
>> > cd /etc/apcahe2/sites-available
>> >
>> >  yems sites-available # ls
>> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com
>> > yems sites-available #
>> >
>>
>> The config you are using here is testsite.com or bluepearlhotel.conf ?
>> Recently, apache changed their default config to only look for files
>> ending in .conf inside sites-available, iirc, so if your config is in
>> testsite.com, maybe its not reading your config at all.
>>
>> >
>> > VirtualHost *:80>
>> > WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi
>> >
>> > ServerName  bluepearlhotel.com
>> >
>> > Alias /static /var/www/bluepearlhotel/static/
>> >
>> > 
>> > Order allow,deny
>> > Allow from all
>> > 
>> >
>> > 
>> > 
>> >
>> > Require all granted
>> > 
>> > 
>> >
>>
>> That *looks* okay. Can you add a couple lines for log files, and then
>> check those files to see if you get anything in the logs that maybe
>> helpful? Like this:
>>
>>   ErrorLog /var/log/apache2/bluepearlhotel.com_error.log
>>   CustomLog /var/log/apache2/bluepearlhotel.com_access.log combined
>>
>> Also, your /static alias seems off? Where exactly are your project
>> files? If your project folder is /home/yems/var/www/bluepearlhotel
>> your static path should probably be something like
>> /home/yems/var/www/bluepearlhotel/static or so?
>>
>> Can you paste output of the command 'pwd' inside your project folder?
>>
>> >
>> >
>> > yems@yems ~ $ ls
>> > bluepearlhotel.wsgi
>> >
>> > import os
>> > import sys
>> > sys.path = ['home/home/var/www/bluepearlhotel'] + sys.path
>> > os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings'
>> > import django.core.handlers.wsgi
>> >
>> > application = django.core.handlers.wsgi.WSGIHandler()
>> >
>> > when i browse
>> >
>> > www.bluepearlhotel.com
>> > it give me an empty page
>> >
>> > Please need help
>> >
>>
>> Again, that *seems* okay, but perhaps you have something weird going
>> on with your paths.
>>
>> I'd check the apache log files, one of two things could happen then:
>>
>> 1> You don't see any errors for bluepearlhotel.com -- in this case,
>> your apache conf is probably not being read at all. Have you done
>> a2enmod on the vhost file? Can you check if there is an entry /
>> symlink inside /etc/apache2/sites-enabled/ (post output of 'ls
>> /etc/apache2/sites-enabled'). Then, first need to figure out why the
>> conf files is not being read.
>>
>> 2> If the conf file is being read, you should see some errors. Those
>> errors should give you some more information about what's going wrong.
>> Paste those errors here and we can try and help you out.
>>
>> Don't give up, lets figure this out :P
>>
>> -Sanjay
>
> --
> 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/

Re: deploying djnago on apache

2014-08-12 Thread ngangsia akumbo
ok thanks bro i am not familia with google chat i have skyp 

skype is ngangsi.richard



On Tuesday, August 12, 2014 10:33:05 AM UTC+1, Sanjay Bhangar wrote:
>
> On Tue, Aug 12, 2014 at 2:41 PM, ngangsia akumbo  > wrote: 
> > This is what i have for errors 
> > 
> > yems@yems /var/log/apache2 $ ls 
> > 
> > access.logerror.logother_vhosts_access.log 
> > access.log.1  error.log.1  other_vhosts_access.log.1 
> > 
>
> If you have not added a specific ErrorLog and CustomLog directive for 
> this vhost file (as per my previous email), apache will club all 
> access and error logs into the default access and error log files. 
>
> > 
> > static path 
> > 
> > yems@yems /var/www/bluepearlhotel $ ls 
> > 
> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
>  static 
> > 
> > app listed are blog, event, gallery, home, images, a 
> > 
> > and the project name is bluepearlhotel 
> > 
>
> You seemed to have your paths in your vhost conf as like 
> "/home/yems/var/ww/..." whereas your path seems to be /var/www/.. 
> (without the /home/yems .. ) 
>
> > 
> > i have also done the a2ensite bluepearlhotel.conf  it gave me this 
> message 
> > 
> > yems@yems /etc/apache2/sites-available $ a2ensite bluepearlhotel.conf 
> > 
> > Site bluepearlhotel already enabled 
> > 
> > the out pu of  /etc/apache2/sites-available 
> > 
> > 
> > yems@yems /etc/apache2/sites-available $ ls 
> > 
> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com 
> > 
> > 
> > 
> > config files are not being read 
> > 
>
> There seem to be several little silly things that could be the issue 
> here - its a bit hard to tell from out here - if you feel like, ping 
> me on chat (sanjayb on IRC/Freenode or my current email address on 
> google-chat) -- we can go over these things step by step and make sure 
> things are in order. 
>
> Cheers, 
> Sanjay 
>
>
> > 
> > There are no erros at the bluepearlhotel 
> > 
> > 
> > On Monday, August 11, 2014 4:52:11 PM UTC+1, Sanjay Bhangar wrote: 
> >> 
> >> hey Ngangsia, 
> >> 
> >> 
> >> On Mon, Aug 11, 2014 at 7:17 PM, ngangsia akumbo  
> >> wrote: 
> >> > i have these configs 
> >> > 
> >> > project path 
> >> > yems bluepearlhotel # ls 
> >> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
> >> > static 
> >> > yems bluepearlhotel # 
> >> > 
> >> > 
> >> > cd /etc/apcahe2/sites-available 
> >> > 
> >> >  yems sites-available # ls 
> >> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com 
> >> > yems sites-available # 
> >> > 
> >> 
> >> The config you are using here is testsite.com or bluepearlhotel.conf ? 
> >> Recently, apache changed their default config to only look for files 
> >> ending in .conf inside sites-available, iirc, so if your config is in 
> >> testsite.com, maybe its not reading your config at all. 
> >> 
> >> > 
> >> > VirtualHost *:80> 
> >> > WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi 
> >> > 
> >> > ServerName  bluepearlhotel.com 
> >> > 
> >> > Alias /static /var/www/bluepearlhotel/static/ 
> >> > 
> >> >  
> >> > Order allow,deny 
> >> > Allow from all 
> >> >  
> >> > 
> >> >  
> >> >  
> >> > 
> >> > Require all granted 
> >> >  
> >> >  
> >> > 
> >> 
> >> That *looks* okay. Can you add a couple lines for log files, and then 
> >> check those files to see if you get anything in the logs that maybe 
> >> helpful? Like this: 
> >> 
> >>   ErrorLog /var/log/apache2/bluepearlhotel.com_error.log 
> >>   CustomLog /var/log/apache2/bluepearlhotel.com_access.log combined 
> >> 
> >> Also, your /static alias seems off? Where exactly are your project 
> >> files? If your project folder is /home/yems/var/www/bluepearlhotel 
> >> your static path should probably be something like 
> >> /home/yems/var/www/bluepearlhotel/static or so? 
> >> 
> >> Can you paste output of the command 'pwd' inside your project folder? 
> >> 
> >> > 
> >> > 
> >> > yems@yems ~ $ ls 
> >> > bluepearlhotel.wsgi 
> >> > 
> >> > import os 
> >> > import sys 
> >> > sys.path = ['home/home/var/www/bluepearlhotel'] + sys.path 
> >> > os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings' 
> >> > import django.core.handlers.wsgi 
> >> > 
> >> > application = django.core.handlers.wsgi.WSGIHandler() 
> >> > 
> >> > when i browse 
> >> > 
> >> > www.bluepearlhotel.com 
> >> > it give me an empty page 
> >> > 
> >> > Please need help 
> >> > 
> >> 
> >> Again, that *seems* okay, but perhaps you have something weird going 
> >> on with your paths. 
> >> 
> >> I'd check the apache log files, one of two things could happen then: 
> >> 
> >> 1> You don't see any errors for bluepearlhotel.com -- in this case, 
> >> your apache conf is probably not being read at all. Have you done 
> >> a2enmod on the vhost file? Can you check if there is an entry / 
> >> symlink inside /etc/apache2/sites-enabled/ (post output of 'ls 
> >> /etc/apache2/sites-enabled'). Then, first need to figure out why the 
> >> conf files is not being read. 
> >>

Re: deploying djnago on apache

2014-08-12 Thread ngangsia akumbo
is the skype ok or facebook

ngangsia (at) yahoo.com

On Tuesday, August 12, 2014 10:38:32 AM UTC+1, ngangsia akumbo wrote:
>
> ok thanks bro i am not familia with google chat i have skyp 
>
> skype is ngangsi.richard
>
>
>
> On Tuesday, August 12, 2014 10:33:05 AM UTC+1, Sanjay Bhangar wrote:
>>
>> On Tue, Aug 12, 2014 at 2:41 PM, ngangsia akumbo  
>> wrote: 
>> > This is what i have for errors 
>> > 
>> > yems@yems /var/log/apache2 $ ls 
>> > 
>> > access.logerror.logother_vhosts_access.log 
>> > access.log.1  error.log.1  other_vhosts_access.log.1 
>> > 
>>
>> If you have not added a specific ErrorLog and CustomLog directive for 
>> this vhost file (as per my previous email), apache will club all 
>> access and error logs into the default access and error log files. 
>>
>> > 
>> > static path 
>> > 
>> > yems@yems /var/www/bluepearlhotel $ ls 
>> > 
>> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
>>  static 
>> > 
>> > app listed are blog, event, gallery, home, images, a 
>> > 
>> > and the project name is bluepearlhotel 
>> > 
>>
>> You seemed to have your paths in your vhost conf as like 
>> "/home/yems/var/ww/..." whereas your path seems to be /var/www/.. 
>> (without the /home/yems .. ) 
>>
>> > 
>> > i have also done the a2ensite bluepearlhotel.conf  it gave me this 
>> message 
>> > 
>> > yems@yems /etc/apache2/sites-available $ a2ensite bluepearlhotel.conf 
>> > 
>> > Site bluepearlhotel already enabled 
>> > 
>> > the out pu of  /etc/apache2/sites-available 
>> > 
>> > 
>> > yems@yems /etc/apache2/sites-available $ ls 
>> > 
>> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com 
>> > 
>> > 
>> > 
>> > config files are not being read 
>> > 
>>
>> There seem to be several little silly things that could be the issue 
>> here - its a bit hard to tell from out here - if you feel like, ping 
>> me on chat (sanjayb on IRC/Freenode or my current email address on 
>> google-chat) -- we can go over these things step by step and make sure 
>> things are in order. 
>>
>> Cheers, 
>> Sanjay 
>>
>>
>> > 
>> > There are no erros at the bluepearlhotel 
>> > 
>> > 
>> > On Monday, August 11, 2014 4:52:11 PM UTC+1, Sanjay Bhangar wrote: 
>> >> 
>> >> hey Ngangsia, 
>> >> 
>> >> 
>> >> On Mon, Aug 11, 2014 at 7:17 PM, ngangsia akumbo  
>> >> wrote: 
>> >> > i have these configs 
>> >> > 
>> >> > project path 
>> >> > yems bluepearlhotel # ls 
>> >> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
>> >> > static 
>> >> > yems bluepearlhotel # 
>> >> > 
>> >> > 
>> >> > cd /etc/apcahe2/sites-available 
>> >> > 
>> >> >  yems sites-available # ls 
>> >> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  
>> testsite.com 
>> >> > yems sites-available # 
>> >> > 
>> >> 
>> >> The config you are using here is testsite.com or bluepearlhotel.conf 
>> ? 
>> >> Recently, apache changed their default config to only look for files 
>> >> ending in .conf inside sites-available, iirc, so if your config is in 
>> >> testsite.com, maybe its not reading your config at all. 
>> >> 
>> >> > 
>> >> > VirtualHost *:80> 
>> >> > WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi 
>> >> > 
>> >> > ServerName  bluepearlhotel.com 
>> >> > 
>> >> > Alias /static /var/www/bluepearlhotel/static/ 
>> >> > 
>> >> >  
>> >> > Order allow,deny 
>> >> > Allow from all 
>> >> >  
>> >> > 
>> >> >  
>> >> >  
>> >> > 
>> >> > Require all granted 
>> >> >  
>> >> >  
>> >> > 
>> >> 
>> >> That *looks* okay. Can you add a couple lines for log files, and then 
>> >> check those files to see if you get anything in the logs that maybe 
>> >> helpful? Like this: 
>> >> 
>> >>   ErrorLog /var/log/apache2/bluepearlhotel.com_error.log 
>> >>   CustomLog /var/log/apache2/bluepearlhotel.com_access.log combined 
>> >> 
>> >> Also, your /static alias seems off? Where exactly are your project 
>> >> files? If your project folder is /home/yems/var/www/bluepearlhotel 
>> >> your static path should probably be something like 
>> >> /home/yems/var/www/bluepearlhotel/static or so? 
>> >> 
>> >> Can you paste output of the command 'pwd' inside your project folder? 
>> >> 
>> >> > 
>> >> > 
>> >> > yems@yems ~ $ ls 
>> >> > bluepearlhotel.wsgi 
>> >> > 
>> >> > import os 
>> >> > import sys 
>> >> > sys.path = ['home/home/var/www/bluepearlhotel'] + sys.path 
>> >> > os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings' 
>> >> > import django.core.handlers.wsgi 
>> >> > 
>> >> > application = django.core.handlers.wsgi.WSGIHandler() 
>> >> > 
>> >> > when i browse 
>> >> > 
>> >> > www.bluepearlhotel.com 
>> >> > it give me an empty page 
>> >> > 
>> >> > Please need help 
>> >> > 
>> >> 
>> >> Again, that *seems* okay, but perhaps you have something weird going 
>> >> on with your paths. 
>> >> 
>> >> I'd check the apache log files, one of two things could happen then: 
>> >> 
>> >> 1> You don't see any errors for bluepearlhotel.com -- in this case, 
>> >> your apache conf is

write equation in django

2014-08-12 Thread sandy
Hi,
I want to include a mathematical equation in django project. Can anyone plz 
guide me as to where I should write the input to the equation, so as to see 
its output on the frontend screen.


Thanks,
Sandy

-- 
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/5693b267-bb52-48d2-ae34-73a24e13836f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: write equation in django

2014-08-12 Thread Steve McConville
There are a number of ways to do this, but the most popular I think is
MathJax. There is a django app for assisting with it's integration here:
https://github.com/kaleidos/django-mathjax


On 12 August 2014 07:51, sandy  wrote:

> Hi,
> I want to include a mathematical equation in django project. Can anyone
> plz guide me as to where I should write the input to the equation, so as to
> see its output on the frontend screen.
>
>
> Thanks,
> Sandy
>
> --
> 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/5693b267-bb52-48d2-ae34-73a24e13836f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
steve
http://stevemcconville.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOoCU%3DQOYkj1Eo70iEWkwr8hVcOTebfCtWJUJfboWdi8wmtgyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Model construction problem?

2014-08-12 Thread MikeKJ
I think I may have got my model construct wrong because there has to be an 
easier way to get the data out than to query the referenced data directly..

What I want to do is for each stop on a route output the stop in the 
template and the times for that stop in something like a tooltip or child 
window, there are 2 possible times per stop, an A and B schedule.

[model]
class TimeTableType(models.Model):
name = models.CharField(max_length=50)

def __str__(self):
return self.name

class Route(models.Model):
route_name = models.CharField(max_length=250)
route_number = models.CharField(max_length=5)

def __unicode__(self):
return self.route_number

class Point(models.Model):
route = models.ForeignKey(Route)
stop_name = models.CharField(max_length=100)
priority = models.IntegerField(default=50)

def __unicode__(self):
return self.stop_name

class Times(models.Model):
stop = models.ForeignKey(Point, related_name="bus_stop")
timetable_type = models.ForeignKey(TimeTableType)
time = models.CharField(max_length=10)
terminus = models.CharField(max_length=100)
terminal_time = models.CharField(max_length=10)
[/model]

This model appears to not have a _set.all relationship between Point and 
Times as the only way I have been able to shell the times is like this

def get_route(request, route):
route = Route.objects.get(route_number=route)
route_id = route.id
this_route = Point.objects.all().filter(route=route_id)
for s in this_route:
timesA = Times.objects.all().filter(stop=s).filter(timetable_type=1)
timesB = Times.objects.all().filter(stop=s).filter(timetable_type=2)

and you can't do 
Times.objects.all().filter(stop=s).filter(timetable_type=1) in a template!  
Hence the feeling I think I have a poor model construct, like upside down.


-- 
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/49f404b1-ca94-49ea-bfa0-8e9fd52b486b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


admin error

2014-08-12 Thread ngangsia akumbo
i am running my website on my local server apache on my machin when i type

www.bluepearlhotel.com i get this error

TemplateDoesNotExist at /admin/

admin/login.html

Request Method:GETRequest URL:http://bluepearlhotel.com/admin/Django 
Version:1.4.3Exception Type:TemplateDoesNotExistException Value:

admin/login.html

Exception 
Location:/usr/local/lib/python2.7/dist-packages/django/template/loader.py 
in find_template, line 138Python Executable:/usr/bin/pythonPython Version:
2.7.6Python Path:

['/var/www/bluepearlhotel',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-i386-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']

Server time:Tue, 12 Aug 2014 14:21:11 +01

-- 
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/987f8340-15e1-480f-87a8-9c3cb35775ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: admin error

2014-08-12 Thread ngangsia akumbo
http://bluepearlhotel.com/admin/


On Tuesday, August 12, 2014 2:26:21 PM UTC+1, ngangsia akumbo wrote:
>
> i am running my website on my local server apache on my machin when i type
>
> www.bluepearlhotel.com i get this error
>
> TemplateDoesNotExist at /admin/
>
> admin/login.html
>
> Request Method:GETRequest URL:http://bluepearlhotel.com/admin/Django 
> Version:1.4.3Exception Type:TemplateDoesNotExistException Value:
>
> admin/login.html
>
> Exception 
> Location:/usr/local/lib/python2.7/dist-packages/django/template/loader.py 
> in find_template, line 138Python Executable:/usr/bin/pythonPython Version:
> 2.7.6Python Path:
>
> ['/var/www/bluepearlhotel',
>  '/usr/lib/python2.7',
>  '/usr/lib/python2.7/plat-i386-linux-gnu',
>  '/usr/lib/python2.7/lib-tk',
>  '/usr/lib/python2.7/lib-old',
>  '/usr/lib/python2.7/lib-dynload',
>  '/usr/local/lib/python2.7/dist-packages',
>  '/usr/lib/python2.7/dist-packages',
>  '/usr/lib/python2.7/dist-packages/PILcompat',
>  '/usr/lib/python2.7/dist-packages/gst-0.10',
>  '/usr/lib/python2.7/dist-packages/gtk-2.0',
>  '/usr/lib/pymodules/python2.7',
>  '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
>
> Server time:Tue, 12 Aug 2014 14:21:11 +01
>

-- 
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/8ed69876-fc4e-4095-8bad-db5c3206e427%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


school website

2014-08-12 Thread ngangsia akumbo
PLease i have a small question. I just need some guidance

i have a school webiste to build in that site  there will be 4 groups
students, staff , guardiance , and course

students will have student profile

each student will be able to choose just a specific number of courses and 
also have access only to those course he or she choose.

student will create update and change profile with courses

staffs will be able to update information

Parents will be able to update and create profile and even delete their 
content

student will not be able to have acces to staff profile and parent profile 
as well

i need some advice on how i can go about with this using the favourite 
django

-- 
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/0a028bed-cb79-4af7-ab84-b1341c4cd8fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django and MySQL, Hibernate

2014-08-12 Thread John
Hey,

I have some questions regarding this post,
http://stackoverflow.com/questions/2706041/django-orm-dealing-with-mysql-bit1-field

I wanna do the same things as Carles, access a Hibernate MySQL DB with Django, 
and have the right field for the BIT field.
Down the post Ben have, what i can guess a very good solution for the problem.
But i don't know where to put Bens code and how to use it.
Can someone point me in a direction!

Best regards
John

-- 
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/14A0FBC8-6E25-49BC-A69C-02CBE61D4166%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Custom management commands provided as only .pyc files?

2014-08-12 Thread Stodge
As explained in https://code.djangoproject.com/ticket/14952, Django doesn't 
support custom management commands that are only provided as .pyc files. I 
have a requirement with my project that I cannot distribute the .py files - 
only the .pyc. It's a roundabout way of not providing the source code when 
we install our software on a client's server. Is the only recommended way 
around this to hack django/core/management/init.py? Is it acceptable to 
monkey patch the file instead? I don't want to hack the Django source as it 
will break when I upgrade Django in the future. 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6b8f36ee-3419-4af7-a46c-43236b8620b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


school website

2014-08-12 Thread ngangsia akumbo
i have a website to build 

it will consist of 4 groups
students, staff, parents and courses

students will have the following
profile
update
delete
access courses
student will only access the course they registered in

staffs will be able to just update information

parents
will have profile, update, delete,  profile access information

course \
out line of all courses
only courses registered can be access bu that student

student should also be able to send messages to each other

i have never done this kid of project, i some guideline on how to go about 
with this 

thanks for sincere response

-- 
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/c6cbab86-aa6f-4f36-8efe-74b3838aaf79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom management commands provided as only .pyc files?

2014-08-12 Thread Christian Ledermann
you can easily decompile pyc into py files
http://stackoverflow.com/questions/5287253/is-it-possible-to-decompile-a-compiled-pyc-file-into-a-py-file
so it doesn't protect your source code.

On Tue, Aug 12, 2014 at 2:55 PM, Stodge  wrote:
> As explained in https://code.djangoproject.com/ticket/14952, Django doesn't
> support custom management commands that are only provided as .pyc files. I
> have a requirement with my project that I cannot distribute the .py files -
> only the .pyc. It's a roundabout way of not providing the source code when
> we install our software on a client's server. Is the only recommended way
> around this to hack django/core/management/init.py? Is it acceptable to
> monkey patch the file instead? I don't want to hack the Django source as it
> will break when I upgrade Django in the future. 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6b8f36ee-3419-4af7-a46c-43236b8620b0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Best Regards,

Christian Ledermann

London - UK
Mobile : +44 7474997517

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

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


Re: Admin options are just ignored

2014-08-12 Thread Collin Anderson
> This is not in the documentation this way. Can anyone update this?
See the note here:
https://docs.djangoproject.com/en/1.6/ref/models/fields/#django.db.models.DateField.auto_now

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


Looking for CTO (co-founder) for E-Commerce Startup

2014-08-12 Thread alpocr
Hello guys. 

I know this group is for code request, but I have some months working alone 
in a startup. 
I'm looking for a *python/django backend developer as a CTO/co-founder*.

The startup is in e-commerce section. Please write me for details.

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 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/f035ea9c-3a08-41ec-b118-fe9bae80bec3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Model construction problem?

2014-08-12 Thread Collin Anderson
You could query it like this:

{% for stop in route.point_set.all() %}
{{ stop.stop_name }}
{% for time in stop.times_set.all() %}
{{ time }}
{% endfor %}
{% endif %}



-- 
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/32fa5021-e1d6-479b-a999-43a208d52aee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom management commands provided as only .pyc files?

2014-08-12 Thread Collin Anderson
it seems to me it should be fair to distribute "in the clear" very minimal 
.py files that don't do anything besides call other code in your project.

-- 
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/7da87161-5345-44b7-88e4-db6d3fc80162%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Model not appearing in django admin

2014-08-12 Thread Thomas Brightwell
I am trying to manage the data in a model through the default django admin 
site. I have several apps, which have all been included in INSTALLED_APPS, 
and I am registering the model with the default django admin. I have 
included the django admin app in urls.py and have verified that I am the 
superuser with all permissions. I know the model is importing because it is 
included in the permission settings, but the option to edit / create new 
model objects for Retailer is not available on the admin home page. 

Any pointer in the right direction would be appreciated. 

===

*webappconf/settings.py*

## APPLICATION DEFINITION
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'webapp',
'scrape',
'style',
)

[...]

ROOT_URLCONF = 'webappconf.urls'

*webappconf/urls.py*

from django.contrib import admin
[...]
url(r'^admin/django_admin/', include(admin.site.urls)),

*webapp/models.py*

# Retailers
class Retailer(Model):
display_name = CharField(max_length=50)
source = CharField(max_length=50)
logo = CharField(max_length=100)
basic_descripion = TextField(max_length=2000)

class Meta:
db_table = 'retailer'

*webapp/admin.py*

from django.contrib import admin
from webapp.models import Retailer

class RetailerAdmin(admin.ModelAdmin):
pass
admin.site.register(Retailer, RetailerAdmin)

*From the permission options for superuser (who has all permissions)*

webapp | retailer | Can add retailer
webapp | retailer | Can change retailer
webapp | retailer | Can delete retailer

-- 
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/fcf0c28a-4fbc-4733-a203-3c4df9177186%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django migrations and DateTimeField defaults

2014-08-12 Thread Andy Roxby
Hello all,
I'm new to this list so please let me know I'm overlooking any sort of e
tiquette.
I'm having problem trying to use a default value for a DateTimeField.  When 
I specify a default value WITH a timezone I receive the following error 
during './manage.py makemigrations'

ValueError: Cannot serialize datetime values with timezones. Either use a 
callable value for default or remove the timezone.

However, if I remove the timezone I receive the following warning during 
'migrate'

RuntimeWarning: DateTimeField Verification_link.redeemed received a naive 
datetime (-12-31 23:59:59.99) while time zone support is active.

I'm just a little confused, I'm crafting a work-around but I would like to 
know what the correct solution is.  Any help would be appreciated.

Code:
from datetime import datetime
from django.utils import timezone

INF_TIME=datetime.max.replace(tzinfo=timezone.utc)

class SomeModel: death = models.DateTimeField(default=INF_TIME)

-- 
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/6897ba3c-c93e-4dba-8218-a6eb992a8f7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: school website

2014-08-12 Thread Carsten Senger
Hi Ngangsia,

Am Dienstag, 12. August 2014 16:24:10 UTC+2 schrieb ngangsia akumbo:
>
> i have a website to build 
>
> it will consist of 4 groups
> students, staff, parents and courses
>
> students will have the following
> profile
> update
> delete
> access courses
> student will only access the course they registered in
>
> staffs will be able to just update information
>
> parents
> will have profile, update, delete,  profile access information
>
> course \
> out line of all courses
> only courses registered can be access bu that student
>
> student should also be able to send messages to each other
>
> i have never done this kid of project, i some guideline on how to go about 
> with this 
>

I'm not sure if it will meet your needs, but there is a software called 
school tool (http://schooltool.org) that is developed to manage schools 
(courses, grades, attendance, ...). It is in active development for several 
years and a solid choice if it does what you want. If you have bigger 
functional requirements you need to develop yourself you should get in 
touch with the school tool folks. School tool is developed with Zope3, so 
custom development will be more complex with not very good documentation, 
especially compared to django.

Cheers,

Carsten Senger

-- 
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/8d67457a-f500-43cd-9c43-214b14ebfa0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for CTO (co-founder) for E-Commerce Startup

2014-08-12 Thread monoBOT
Hola.
Cuenta algo mas sobre lo que necesitas, saludos!


2014-08-12 17:01 GMT+01:00 alpocr :

> Hello guys.
>
> I know this group is for code request, but I have some months working
> alone in a startup.
> I'm looking for a *python/django backend developer as a CTO/co-founder*.
>
> The startup is in e-commerce section. Please write me for details.
>
> 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 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/f035ea9c-3a08-41ec-b118-fe9bae80bec3%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*monoBOT*
Visite mi sitio(Visit my site): monobotsoft.es/blog/

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


Re: Looking for CTO (co-founder) for E-Commerce Startup

2014-08-12 Thread Charly Román
Quizá si respondes en inglés...
On Aug 12, 2014 1:20 PM, "monoBOT"  wrote:

> Hola.
> Cuenta algo mas sobre lo que necesitas, saludos!
>
>
> 2014-08-12 17:01 GMT+01:00 alpocr :
>
>> Hello guys.
>>
>> I know this group is for code request, but I have some months working
>> alone in a startup.
>> I'm looking for a *python/django backend developer as a CTO/co-founder*.
>>
>> The startup is in e-commerce section. Please write me for details.
>>
>> 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 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/f035ea9c-3a08-41ec-b118-fe9bae80bec3%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> *monoBOT*
> Visite mi sitio(Visit my site): monobotsoft.es/blog/
>
> --
> 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/CA%2BxOsGARJUBb6WqZ%2Bv8nadi8zN-Kpwz4OUuMmveULNGGQKWdkw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABeWMUZGU_v9H3D%2BTW4E6Z%3DRA5Gs_9YTXc%3D6jH23_CC3r8ZDeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to log out a user

2014-08-12 Thread Torsten Bronger
Hallöchen!

I know that there is a logout(request) routine, but how to program a
logout(user) routine?

Background:  Every night, a cronjob iterates over all active users
in our Django deployment and checks whether they can still be found
in our LDAP directory.  Every user that is not found anymore is set
to inactive.  Unfortunately, this is not enough, he or she must be
logged out.  But how to do that?

Tschö,
Torsten.

-- 
Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de
  or http://bronger-jmp.appspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/87egwlk18f.fsf%40physik.rwth-aachen.de.
For more options, visit https://groups.google.com/d/optout.


Re: How to log out a user

2014-08-12 Thread François Schiettecatte
You should take a look at sessions:

https://docs.djangoproject.com/en/1.7/topics/http/sessions/

You can arbitrarily remove sessions regardless of expiration which will log out 
the user.

François

On Aug 12, 2014, at 2:32 PM, Torsten Bronger  
wrote:

> Hallöchen!
> 
> I know that there is a logout(request) routine, but how to program a
> logout(user) routine?
> 
> Background:  Every night, a cronjob iterates over all active users
> in our Django deployment and checks whether they can still be found
> in our LDAP directory.  Every user that is not found anymore is set
> to inactive.  Unfortunately, this is not enough, he or she must be
> logged out.  But how to do that?
> 
> Tschö,
> Torsten.
> 
> -- 
> Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de
>  or http://bronger-jmp.appspot.com
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/87egwlk18f.fsf%40physik.rwth-aachen.de.
> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/F7E9D86C-19D6-48DF-B4BB-CF4837DFD99D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to log out a user

2014-08-12 Thread Nikolas Stevenson-Molnar
Unfortunately, you can't look up sessions by user, so you've have to
load every active session and see if its for the user you wish to
logout. Alternatively, you could create your own mapping of users to
sessions, or add some middleware that verifies the user is active on
every request, and signs them out if not (so the logout wouldn't happen
during the cron job, but rather the first time they try to access the
site after being marked inactive).

_Nik

On 8/12/2014 11:44 AM, François Schiettecatte wrote:
> You should take a look at sessions:
>
>   https://docs.djangoproject.com/en/1.7/topics/http/sessions/
>
> You can arbitrarily remove sessions regardless of expiration which will log 
> out the user.
>
> François
>
> On Aug 12, 2014, at 2:32 PM, Torsten Bronger  
> wrote:
>
>> Hallöchen!
>>
>> I know that there is a logout(request) routine, but how to program a
>> logout(user) routine?
>>
>> Background:  Every night, a cronjob iterates over all active users
>> in our Django deployment and checks whether they can still be found
>> in our LDAP directory.  Every user that is not found anymore is set
>> to inactive.  Unfortunately, this is not enough, he or she must be
>> logged out.  But how to do that?
>>
>> Tschö,
>> Torsten.
>>
>> -- 
>> Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de
>>  or http://bronger-jmp.appspot.com
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/87egwlk18f.fsf%40physik.rwth-aachen.de.
>> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/53EA6573.9080303%40consbio.org.
For more options, visit https://groups.google.com/d/optout.


Re: multiple projects on same database

2014-08-12 Thread Héctor Urbina
Thanks Camilo,

I understand a schema just as a database, so if I use another schema I will 
be creating a new database and then the auth tables will be duplicated on 
this new database (or schema). With that, I won't get what I want, that is, 
only one set of tables with users' information. I'm using mariadb (mysql), 
I don't know if schemas mean something different in other db engines...

Do you have any examples or places where I could learn more about your 
solution? I'm surely missing some things.

Greetins,
Hector.

On Thursday, August 7, 2014 4:14:39 PM UTC-4, Camilo Torres wrote:
>
> Hello.
>
> You can use the same DB, but different schema or different user. You can 
> also use the same schema as long as table names (and other objects names) 
> din't match.
>
> I recomend to use diferent schemas for different web apps.
>
> Camilo.
>
>

-- 
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/4602bda9-7617-4f5e-a981-58ba792f1e13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [melbourne-pug] OS license requirements

2014-08-12 Thread Russell Keith-Magee
On Tue, Aug 12, 2014 at 5:20 PM, Tom Evans  wrote:

> On Tue, Aug 12, 2014 at 1:43 AM, Mike Dewhirst 
> wrote:
> > Russ suggested staying within the big five and that was why I was leaning
> > towards LGPL anyway. My thought was about who might be interested in
> helping
> > if the license is breached. MSF or FSF? I assume FSF because that is
> their
> > entire mission.
> >
>
> I very much doubt either of them would be particularly interested
> beyond publicising the alleged breach for you. As the license holder,
> responsibility for enforcement would belong to you.
>

I think you'd be surprised. The MSF position isn't as clear, but the FSF
and SFLC have both filed amicus curiae briefs in defence of the goals of
the GPL, covering issues of  patent law, copyright reform, and so on. The
FSF exists to make sure Free software is possible at all, the (L)GPL is the
instrument they've chosen to achieve that, and from what I've seen they're
willing and able to defend that position.

Don't get me wrong - I'm not expecting the FSF to ride in and cover all
your legal costs for every potential violation - but if there was any risk
that case law was about to be made that undermined the GPL, I think you'd
find some big guns at your disposal.

Yours,
Russ Magee %-)

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


Dynamic CSS

2014-08-12 Thread Drew Ferguson
Hi

Is there any documentation describing possible ways of having dynamic CSS
in a site?

For example, having a CSS colour scheme set from a database query or
setting a site logo URL from a database query

Ta
-- 
Drew Ferguson

-- 
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/20140813003710.3f766b96%40blacktav.fergiesontour.org.
For more options, visit https://groups.google.com/d/optout.


Re: Dynamic CSS

2014-08-12 Thread François Schiettecatte
You could certainly render the CSS either in-line in the HMTL pages or in 
templates, just produce CSS as opposed to HTML (I have produced RSS, ATOM, XML 
and JSON in templates). Or you could have multiple CSS files and just pick the 
one you want to use when you render the link to the CSS in your HTML pages.

François 

On Aug 12, 2014, at 7:37 PM, Drew Ferguson  wrote:

> Hi
> 
> Is there any documentation describing possible ways of having dynamic CSS
> in a site?
> 
> For example, having a CSS colour scheme set from a database query or
> setting a site logo URL from a database query
> 
> Ta
> -- 
> Drew Ferguson
> 
> -- 
> 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/20140813003710.3f766b96%40blacktav.fergiesontour.org.
> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CC247E9B-3629-4627-9456-F4FAB5E7316C%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Model not appearing in django admin

2014-08-12 Thread chedi toueiti
Hi,

You can start by entering the model url manually after logging to the admin 
interface, in your case it would be

http://[host name]:[port]/admin/django_admin/webapp/retailer

don't forget to set your DEBUG to True in the settings.py and if you are 
restart your server if you are running gunicorn or anything alike.

On Tuesday, August 12, 2014 5:50:21 PM UTC+1, Thomas Brightwell wrote:
>
> I am trying to manage the data in a model through the default django admin 
> site. I have several apps, which have all been included in INSTALLED_APPS, 
> and I am registering the model with the default django admin. I have 
> included the django admin app in urls.py and have verified that I am the 
> superuser with all permissions. I know the model is importing because it is 
> included in the permission settings, but the option to edit / create new 
> model objects for Retailer is not available on the admin home page. 
>
> Any pointer in the right direction would be appreciated. 
>
> ===
>
> *webappconf/settings.py*
>
> ## APPLICATION DEFINITION
> INSTALLED_APPS = (
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'webapp',
> 'scrape',
> 'style',
> )
>
> [...]
>
> ROOT_URLCONF = 'webappconf.urls'
>
> *webappconf/urls.py*
>
> from django.contrib import admin
> [...]
> url(r'^admin/django_admin/', include(admin.site.urls)),
>
> *webapp/models.py*
>
> # Retailers
> class Retailer(Model):
> display_name = CharField(max_length=50)
> source = CharField(max_length=50)
> logo = CharField(max_length=100)
> basic_descripion = TextField(max_length=2000)
>
> class Meta:
> db_table = 'retailer'
>
> *webapp/admin.py*
>
> from django.contrib import admin
> from webapp.models import Retailer
>
> class RetailerAdmin(admin.ModelAdmin):
> pass
> admin.site.register(Retailer, RetailerAdmin)
>
> *From the permission options for superuser (who has all permissions)*
>
> webapp | retailer | Can add retailer
> webapp | retailer | Can change retailer
> webapp | retailer | Can delete retailer
>
>

-- 
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/9060568f-3aa1-46ea-a435-906bd236fe33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: post_save doesn't work

2014-08-12 Thread chedi toueiti
Hi Neto,

Just make sure that your callback is loaded, the most easy way to do it is 
to import the function in models.py if you have a single models file or in 
the __init__.py of the models if you have it as a module.

in https://docs.djangoproject.com/en/1.6/topics/signals/:


Where should this code live?
>
> You can put signal handling and registration code anywhere you like. 
> However, you’ll need to make sure that the module it’s in gets imported 
> early on so that the signal handling gets registered before any signals 
> need to be sent. This makes your app’s models.py a good place to put 
> registration of signal handlers.
>

On Monday, August 11, 2014 10:02:18 PM UTC+1, Neto wrote:
>
> I'm trying to do a post_save but he doesn't work, I am using* 
> objects.create()*:
>
> *views:*
>
> Usuario.objects.create(name='')
>
> *models:*
>
> @receiver(models.signals.post_save, sender=Usuario)
> def auto_abc(sender, instance, **kwargs):
> ...
>
>
>
> Why my post_save doesn't work with objects.create()? How I do?
>

-- 
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/797c2c7c-71de-4acb-b1ca-8f1341cd1547%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Dynamic CSS

2014-08-12 Thread Drew Ferguson
On Tue, 12 Aug 2014 19:53:34 -0400
François Schiettecatte  wrote:

> You could certainly render the CSS either in-line in the HMTL pages or
> in templates, just produce CSS as opposed to HTML (I have produced RSS,

My goodness, of course!

Sometimes the "bleedin' obvious" is hard to see

Thanks

> ATOM, XML and JSON in templates). Or you could have multiple CSS files
> and just pick the one you want to use when you render the link to the
> CSS in your HTML pages.
> 
> François 
> 
> On Aug 12, 2014, at 7:37 PM, Drew Ferguson 
> wrote:
> 
> > Hi
> > 
> > Is there any documentation describing possible ways of having dynamic
> > CSS in a site?
> > 
> > For example, having a CSS colour scheme set from a database query or
> > setting a site logo URL from a database query
> > 
> > Ta
> > -- 
> > Drew Ferguson
> > 
> > -- 
> > 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/20140813003710.3f766b96%40blacktav.fergiesontour.org.
> > For more options, visit https://groups.google.com/d/optout.
> 

-- 
Drew Ferguson

-- 
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/20140813013703.223bf526%40blacktav.fergiesontour.org.
For more options, visit https://groups.google.com/d/optout.


Re: Django migrations and DateTimeField defaults

2014-08-12 Thread Collin Anderson
Wow. That almost sounds like a bug, though you can however use a callable. 
As ridiculous as it looks, it should work :).

INF_TIME = datetime.max.replace(tzinfo=timezone.utc)

def get_inf_time():
return INF_TIME

death = models.DateTimeField(default=get_inf_time)

What you are doing seems pretty rare, though it seems maybe that error 
message should not be recommending a naive datetime.

-- 
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/857b1a2c-0c37-4899-8db9-2e211d3d2ab0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Model not appearing in django admin

2014-08-12 Thread Collin Anderson
Do you have admin.autodiscover() in your urls.py? (assuming you're not 
using version 1.7)

-- 
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/af5ca17e-4b47-4ff9-99c3-22cca73d083f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how to implement Geraldo in my Django project

2014-08-12 Thread swapnil srivastava
Hello Experts,

I have followed http://www.geraldoreports.org/docs/tutorial-django.htm 
l 
 link and install 
Geraldo in my machine but I cant call it . 
What changes should be require in setting.py -> INSTALLED_APPS. or 
something else in django project to add it.

Thanks & Regards 
Swapnil 

-- 
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/96ec559a-cfe8-4e60-960a-a5e27e12ea41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Model not appearing in django admin

2014-08-12 Thread Thomas Brightwell
Chedi,

Thanks for the quick response.

http://localhost:8000/admin/django_admin/webapp/retailer

Page not found (404)
Request Method: GET
Request URL: http://localhost:8000/admin/django_admin/webapp/retailer
Using the URLconf defined in webappconf.urls, Django tried these URL 
patterns, in this order:
^$
^search/$
^product/(?P\w+)/$
^accounts/login/$
^accounts/logout/$
^search/(?P[-\w]+)/$
^search/(?P[-\w]+)/(?P[-\w]+)/$
^search/(?P[-\w]+)/(?P[-\w]+)/(?P[-\w]+)/$
^admin/cat/$
^admin/cat/unaccepted/$ [name='cat_unaccepted']
^admin/cat/deferred/$
^admin/cat/api/next_unaccepted/$
^admin/cat/api/next_deferred/$
^admin/cat/api/item/(?P\w+)/$
^admin/cat/api/accept_item/$
^admin/cat/api/defer_item/$
^admin/edit/(?P\w+)/$
^admin/scraping_stats/$
^admin/scraping_stats/details/(?P[A-Za-z0-9-_]+)/$
^admin/scraping_stats/api/load_all_spider_stats/$
^admin/scraping_stats/api/load_all_retailer_stats/$
^admin/scraping_stats/api/load_spider_stats/(?P[A-Za-z0-9-_]+)/$
^admin/scraping_stats/counts/$
^admin/django_admin/ ^$ [name='index']
^admin/django_admin/ ^login/$ [name='login']
^admin/django_admin/ ^logout/$ [name='logout']
^admin/django_admin/ ^password_change/$ [name='password_change']
^admin/django_admin/ ^password_change/done/$ [name='password_change_done']
^admin/django_admin/ ^jsi18n/$ [name='jsi18n']
^admin/django_admin/ ^r/(?P\d+)/(?P.+)/$ 
[name='view_on_site']
^admin/django_admin/ ^auth/group/
^admin/django_admin/ ^auth/user/
^admin/django_admin/ ^(?Pauth)/$ [name='app_list']
^style/
The current URL, admin/django_admin/webapp/retailer, didn't match any of 
these.

On Wednesday, 13 August 2014 01:01:21 UTC+1, chedi toueiti wrote:
>
> Hi,
>
> You can start by entering the model url manually after logging to the 
> admin interface, in your case it would be
>
> http://[host name]:[port]/admin/django_admin/webapp/retailer
>
> don't forget to set your DEBUG to True in the settings.py and if you are 
> restart your server if you are running gunicorn or anything alike.
>
> On Tuesday, August 12, 2014 5:50:21 PM UTC+1, Thomas Brightwell wrote:
>>
>> I am trying to manage the data in a model through the default django 
>> admin site. I have several apps, which have all been included in 
>> INSTALLED_APPS, and I am registering the model with the default django 
>> admin. I have included the django admin app in urls.py and have verified 
>> that I am the superuser with all permissions. I know the model is importing 
>> because it is included in the permission settings, but the option to edit / 
>> create new model objects for Retailer is not available on the admin home 
>> page. 
>>
>> Any pointer in the right direction would be appreciated. 
>>
>> ===
>>
>> *webappconf/settings.py*
>>
>> ## APPLICATION DEFINITION
>> INSTALLED_APPS = (
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>> 'webapp',
>> 'scrape',
>> 'style',
>> )
>>
>> [...]
>>
>> ROOT_URLCONF = 'webappconf.urls'
>>
>> *webappconf/urls.py*
>>
>> from django.contrib import admin
>> [...]
>> url(r'^admin/django_admin/', include(admin.site.urls)),
>>
>> *webapp/models.py*
>>
>> # Retailers
>> class Retailer(Model):
>> display_name = CharField(max_length=50)
>> source = CharField(max_length=50)
>> logo = CharField(max_length=100)
>> basic_descripion = TextField(max_length=2000)
>>
>> class Meta:
>> db_table = 'retailer'
>>
>> *webapp/admin.py*
>>
>> from django.contrib import admin
>> from webapp.models import Retailer
>>
>> class RetailerAdmin(admin.ModelAdmin):
>> pass
>> admin.site.register(Retailer, RetailerAdmin)
>>
>> *From the permission options for superuser (who has all permissions)*
>>
>> webapp | retailer | Can add retailer
>> webapp | retailer | Can change retailer
>> webapp | retailer | Can delete retailer
>>
>>

-- 
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/a86bdf0b-d9b5-4cf8-a11f-23e433081ba5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Model not appearing in django admin

2014-08-12 Thread Thomas Brightwell
Collin,

I'm running django v1.7c1

On Wednesday, 13 August 2014 02:50:14 UTC+1, Collin Anderson wrote:
>
> Do you have admin.autodiscover() in your urls.py? (assuming you're not 
> using version 1.7)
>

-- 
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/b0d12ef4-7b58-4e89-ba08-a62122e18d82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Model not appearing in django admin

2014-08-12 Thread chedi toueiti
I see that you have other routes beginning with ^admin/, this can some time 
cause the non inclusion of certain urls depending on the order in which 
they appear in the urls.py file. Can you comment the other ones and just 
keep

url(r'^admin/django_admin/', include(admin.site.urls))

to eliminate this possibility.

On Wednesday, August 13, 2014 7:27:57 AM UTC+1, Thomas Brightwell wrote:
>
> Chedi,
>
> Thanks for the quick response.
>
> http://localhost:8000/admin/django_admin/webapp/retailer
>
> Page not found (404)
> Request Method: GET
> Request URL: http://localhost:8000/admin/django_admin/webapp/retailer
> Using the URLconf defined in webappconf.urls, Django tried these URL 
> patterns, in this order:
> ^$
> ^search/$
> ^product/(?P\w+)/$
> ^accounts/login/$
> ^accounts/logout/$
> ^search/(?P[-\w]+)/$
> ^search/(?P[-\w]+)/(?P[-\w]+)/$
> ^search/(?P[-\w]+)/(?P[-\w]+)/(?P[-\w]+)/$
> ^admin/cat/$
> ^admin/cat/unaccepted/$ [name='cat_unaccepted']
> ^admin/cat/deferred/$
> ^admin/cat/api/next_unaccepted/$
> ^admin/cat/api/next_deferred/$
> ^admin/cat/api/item/(?P\w+)/$
> ^admin/cat/api/accept_item/$
> ^admin/cat/api/defer_item/$
> ^admin/edit/(?P\w+)/$
> ^admin/scraping_stats/$
> ^admin/scraping_stats/details/(?P[A-Za-z0-9-_]+)/$
> ^admin/scraping_stats/api/load_all_spider_stats/$
> ^admin/scraping_stats/api/load_all_retailer_stats/$
>
> ^admin/scraping_stats/api/load_spider_stats/(?P[A-Za-z0-9-_]+)/$
> ^admin/scraping_stats/counts/$
> ^admin/django_admin/ ^$ [name='index']
> ^admin/django_admin/ ^login/$ [name='login']
> ^admin/django_admin/ ^logout/$ [name='logout']
> ^admin/django_admin/ ^password_change/$ [name='password_change']
> ^admin/django_admin/ ^password_change/done/$ [name='password_change_done']
> ^admin/django_admin/ ^jsi18n/$ [name='jsi18n']
> ^admin/django_admin/ ^r/(?P\d+)/(?P.+)/$ 
> [name='view_on_site']
> ^admin/django_admin/ ^auth/group/
> ^admin/django_admin/ ^auth/user/
> ^admin/django_admin/ ^(?Pauth)/$ [name='app_list']
> ^style/
> The current URL, admin/django_admin/webapp/retailer, didn't match any of 
> these.
>
> On Wednesday, 13 August 2014 01:01:21 UTC+1, chedi toueiti wrote:
>>
>> Hi,
>>
>> You can start by entering the model url manually after logging to the 
>> admin interface, in your case it would be
>>
>> http://[host name]:[port]/admin/django_admin/webapp/retailer
>>
>> don't forget to set your DEBUG to True in the settings.py and if you are 
>> restart your server if you are running gunicorn or anything alike.
>>
>> On Tuesday, August 12, 2014 5:50:21 PM UTC+1, Thomas Brightwell wrote:
>>>
>>> I am trying to manage the data in a model through the default django 
>>> admin site. I have several apps, which have all been included in 
>>> INSTALLED_APPS, and I am registering the model with the default django 
>>> admin. I have included the django admin app in urls.py and have verified 
>>> that I am the superuser with all permissions. I know the model is importing 
>>> because it is included in the permission settings, but the option to edit / 
>>> create new model objects for Retailer is not available on the admin home 
>>> page. 
>>>
>>> Any pointer in the right direction would be appreciated. 
>>>
>>> ===
>>>
>>> *webappconf/settings.py*
>>>
>>> ## APPLICATION DEFINITION
>>> INSTALLED_APPS = (
>>> 'django.contrib.admin',
>>> 'django.contrib.auth',
>>> 'django.contrib.contenttypes',
>>> 'django.contrib.sessions',
>>> 'django.contrib.messages',
>>> 'django.contrib.staticfiles',
>>> 'webapp',
>>> 'scrape',
>>> 'style',
>>> )
>>>
>>> [...]
>>>
>>> ROOT_URLCONF = 'webappconf.urls'
>>>
>>> *webappconf/urls.py*
>>>
>>> from django.contrib import admin
>>> [...]
>>> url(r'^admin/django_admin/', include(admin.site.urls)),
>>>
>>> *webapp/models.py*
>>>
>>> # Retailers
>>> class Retailer(Model):
>>> display_name = CharField(max_length=50)
>>> source = CharField(max_length=50)
>>> logo = CharField(max_length=100)
>>> basic_descripion = TextField(max_length=2000)
>>>
>>> class Meta:
>>> db_table = 'retailer'
>>>
>>> *webapp/admin.py*
>>>
>>> from django.contrib import admin
>>> from webapp.models import Retailer
>>>
>>> class RetailerAdmin(admin.ModelAdmin):
>>> pass
>>> admin.site.register(Retailer, RetailerAdmin)
>>>
>>> *From the permission options for superuser (who has all permissions)*
>>>
>>> webapp | retailer | Can add retailer
>>> webapp | retailer | Can change retailer
>>> webapp | retailer | Can delete retailer
>>>
>>>

-- 
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/00c54b33-c8b2-4f8f-934b-3

Re: Model not appearing in django admin

2014-08-12 Thread Thomas Brightwell
Chedi,

I commented out the other lines leaving this:

urlpatterns = patterns('',
# ##
# DJANGO ADMIN
# ##
url(r'^admin/django_admin/', include(admin.site.urls)),

# ##
# STYLE TEST
# ##
url(r'^style/', include('style.urls')),
)

And got this error 
for http://localhost:8000/admin/django_admin/webapp/retailer

Page not found (404)
Request Method: GET
Request URL: http://localhost:8000/admin/django_admin/webapp/retailer
Using the URLconf defined in webappconf.urls, Django tried these URL 
patterns, in this order:
^admin/django_admin/ ^$ [name='index']
^admin/django_admin/ ^login/$ [name='login']
^admin/django_admin/ ^logout/$ [name='logout']
^admin/django_admin/ ^password_change/$ [name='password_change']
^admin/django_admin/ ^password_change/done/$ [name='password_change_done']
^admin/django_admin/ ^jsi18n/$ [name='jsi18n']
^admin/django_admin/ ^r/(?P\d+)/(?P.+)/$ 
[name='view_on_site']
^admin/django_admin/ ^auth/user/
^admin/django_admin/ ^auth/group/
^admin/django_admin/ ^(?Pauth)/$ [name='app_list']
^style/
The current URL, admin/django_admin/webapp/retailer, didn't match any of 
these.

On Wednesday, 13 August 2014 07:55:09 UTC+1, chedi toueiti wrote:
>
> I see that you have other routes beginning with ^admin/, this can some 
> time cause the non inclusion of certain urls depending on the order in 
> which they appear in the urls.py file. Can you comment the other ones and 
> just keep
>
> url(r'^admin/django_admin/', include(admin.site.urls))
>
> to eliminate this possibility.
>
> On Wednesday, August 13, 2014 7:27:57 AM UTC+1, Thomas Brightwell wrote:
>>
>> Chedi,
>>
>> Thanks for the quick response.
>>
>> http://localhost:8000/admin/django_admin/webapp/retailer
>>
>> Page not found (404)
>> Request Method: GET
>> Request URL: http://localhost:8000/admin/django_admin/webapp/retailer
>> Using the URLconf defined in webappconf.urls, Django tried these URL 
>> patterns, in this order:
>> ^$
>> ^search/$
>> ^product/(?P\w+)/$
>> ^accounts/login/$
>> ^accounts/logout/$
>> ^search/(?P[-\w]+)/$
>> ^search/(?P[-\w]+)/(?P[-\w]+)/$
>> ^search/(?P[-\w]+)/(?P[-\w]+)/(?P[-\w]+)/$
>> ^admin/cat/$
>> ^admin/cat/unaccepted/$ [name='cat_unaccepted']
>> ^admin/cat/deferred/$
>> ^admin/cat/api/next_unaccepted/$
>> ^admin/cat/api/next_deferred/$
>> ^admin/cat/api/item/(?P\w+)/$
>> ^admin/cat/api/accept_item/$
>> ^admin/cat/api/defer_item/$
>> ^admin/edit/(?P\w+)/$
>> ^admin/scraping_stats/$
>> ^admin/scraping_stats/details/(?P[A-Za-z0-9-_]+)/$
>> ^admin/scraping_stats/api/load_all_spider_stats/$
>> ^admin/scraping_stats/api/load_all_retailer_stats/$
>>
>> ^admin/scraping_stats/api/load_spider_stats/(?P[A-Za-z0-9-_]+)/$
>> ^admin/scraping_stats/counts/$
>> ^admin/django_admin/ ^$ [name='index']
>> ^admin/django_admin/ ^login/$ [name='login']
>> ^admin/django_admin/ ^logout/$ [name='logout']
>> ^admin/django_admin/ ^password_change/$ [name='password_change']
>> ^admin/django_admin/ ^password_change/done/$ [name='password_change_done']
>> ^admin/django_admin/ ^jsi18n/$ [name='jsi18n']
>> ^admin/django_admin/ ^r/(?P\d+)/(?P.+)/$ 
>> [name='view_on_site']
>> ^admin/django_admin/ ^auth/group/
>> ^admin/django_admin/ ^auth/user/
>> ^admin/django_admin/ ^(?Pauth)/$ [name='app_list']
>> ^style/
>> The current URL, admin/django_admin/webapp/retailer, didn't match any of 
>> these.
>>
>> On Wednesday, 13 August 2014 01:01:21 UTC+1, chedi toueiti wrote:
>>>
>>> Hi,
>>>
>>> You can start by entering the model url manually after logging to the 
>>> admin interface, in your case it would be
>>>
>>> http://[host name]:[port]/admin/django_admin/webapp/retailer
>>>
>>> don't forget to set your DEBUG to True in the settings.py and if you are 
>>> restart your server if you are running gunicorn or anything alike.
>>>
>>> On Tuesday, August 12, 2014 5:50:21 PM UTC+1, Thomas Brightwell wrote:

 I am trying to manage the data in a model through the default django 
 admin site. I have several apps, which have all been included in 
 INSTALLED_APPS, and I am registering the model with the default django 
 admin. I have included the django admin app in urls.py and have verified 
 that I am the superuser with all permissions. I know the model is 
 importing 
 because it is included in the permission settings, but the option to edit 
 / 
 create new model objects for Retailer is not available on the admin home 
 page. 

 Any pointer in the right direction would be appreciated. 

 ===

 *webappconf/settings.py*

 ## APPLICATION DEFINITION
 INSTALLED_APPS = (
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'webapp',
 'scrape',
 'style',
 )

 [...]

 ROO