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/',

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

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

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 or

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

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.

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 pret

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 >

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

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 gunic

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

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

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 breac

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 us

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 t

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

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

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

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 i

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 c

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

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 sup

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 receivi

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 unsub

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

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 f

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

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

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

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

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

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 Met

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 Val

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 w

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

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 us

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

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

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 dire

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 licen

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

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

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