Re: Autofill user for a created_by type of field (not in admin)

2014-08-11 Thread Mike Dewhirst
On 12/08/2014 12:40 PM, Craig Jones wrote: I know that this is a common question and I have seen many, many answers when I google about this, but I need some advice. What I have is a field in my models called entered_by which is ForeignKey to the User model. I would like to have this filled

Autofill user for a created_by type of field (not in admin)

2014-08-11 Thread Craig Jones
I know that this is a common question and I have seen many, many answers when I google about this, but I need some advice. What I have is a field in my models called entered_by which is ForeignKey to the User model. I would like to have this filled automatically upon creation in the Admin

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

2014-08-11 Thread Malik Rumi
Ok, changing to .models seems to have fixed that error. On to the rest Thx! On Monday, August 11, 2014 12:40:48 PM UTC-5, Tyrel Souza wrote: > > .models is from PEP 328 http://legacy.python.org/dev/peps/pep-0328/ > It's checking for models.py in the current module and it's knowns as a >

Re: [melbourne-pug] OS license requirements

2014-08-11 Thread Mike Dewhirst
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

RE: OS license requirements

2014-08-11 Thread Paul Greenberg
Hi Mike, To give you the advice you are looking for I would need to have an idea of what your project consists of. Sometimes, the subtleties related to inner-workings between different software/hardware modules or components may change your approach to licensing. As such, you may create your

Re: OS license requirements

2014-08-11 Thread Mike Dewhirst
Thanks Paul - no, Melbourne Australia Cheers Mike On 11/08/2014 10:42 PM, Paul Greenberg wrote: Hi Mike, I will be able to help you out. Are you local to US? Best Regards, Paul Greenberg, Esq. Law Office of Paul Greenberg 530 Main Street, Suite 102 Fort Lee, NJ 07024 E-mail:

Re: OS license requirements

2014-08-11 Thread Russell Keith-Magee
On Mon, Aug 11, 2014 at 8:34 AM, Mike Dewhirst wrote: > Apologies for cross-posting > > I'm getting near to open sourcing a Django project and have to choose an > appropriate license. Can anyone help me choose? > > I have settled on the following requirements ... > > 1.

post_save doesn't work

2014-08-11 Thread Neto
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()?

Re: Django Releases Feed

2014-08-11 Thread Collin Anderson
The https://groups.google.com/forum/#!forum/django-announce mailing list is probably your best bet, besides https://www.djangoproject.com/weblog/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Django Releases Feed

2014-08-11 Thread Peter Novotnak
Is there a feed that I can monitor to be notified of Django releases? I can't seem to conjure the right search terms to find such a feed, if one exists. -Peter -- -- *Notice*: The information contained in this message or any attached document is confidential

Re: Admin options are just ignored

2014-08-11 Thread Collin Anderson
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

Re: Admin options are just ignored

2014-08-11 Thread somenxavier
Yes, I'm pretty sure. You can see here my models. No 'modificacio' And $ grep -R "modificacio" serviedre/tasques/models.py:data_modificacio = models.DateTimeField(auto_now=True,verbose_name="data de

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

2014-08-11 Thread Tyrel Souza
.models is from PEP 328 http://legacy.python.org/dev/peps/pep-0328/ It's checking for models.py in the current module and it's knowns as a "relative import" On Monday, August 11, 2014 1:35:50 PM UTC-4, Malik Rumi wrote: > > UPDATE > > What is “.models”, why and when do we import from it, and

Re: Admin options are just ignored

2014-08-11 Thread Collin Anderson
is data_modificacio a real field on your model? (not just a method?) are you using a custom form? -- 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

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

2014-08-11 Thread Malik Rumi
UPDATE What is “.models”, why and when do we import from it, and how is it different from importing from “models”? I’ve never seen this .models before. I saw it the first time this morning in the documentation

Re: Why this error when run manage.py?-->AttributeError: 'module' object has no attribute 'execute_manager'

2014-08-11 Thread Chris Seberino
Solved. It appears I made some changes to manage.py that are not allowed. Moving manage.py back outside of the project and leaving just the following worked... #!/usr/bin/env python import django.core.management import sys import os os.environ.setdefault("DJANGO_SETTINGS_MODULE",

Re: deploying django

2014-08-11 Thread Tyrel Souza
If you're looking for an easy place to host a django website for testing, check out Heroku.com. They have some (slow) free tiers. Here's a getting started guide for Django https://devcenter.heroku.com/articles/getting-started-with-django On Friday, August 8, 2014 11:29:45 AM UTC-4, ngangsia

Re: Django POST Arrays

2014-08-11 Thread G Z
Thanks so much On Thursday, August 7, 2014 4:38:28 PM UTC-6, Tom Evans wrote: > > On Thu, Aug 7, 2014 at 10:27 PM, G Z > wrote: > > I'm doing some query and database stuff outside of what django is > capable of > > and I need some help with how I get all the values of a

Re: Admin options are just ignored

2014-08-11 Thread somenxavier
Mmm.. sorry. I did not see that. One more error: after making these changes , I receive FieldError at /admin/tasques/resguard/1/ Unknown field(s) (data_modificacio) specified for Resguard. Check

Why this error when run manage.py?-->AttributeError: 'module' object has no attribute 'execute_manager'

2014-08-11 Thread Chris Seberino
My fresh Django install on Ubuntu 14.04 works fine. WSGI starts the app up just fine. I can run manage.py without getting this error... % ./manage.py Traceback (most recent call last): File "./manage.py", line 6, in django.core.management.execute_manager(settings) AttributeError:

Re: deploying djnago on apache

2014-08-11 Thread Sanjay Bhangar
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

Re: deploying djnago on apache

2014-08-11 Thread ngangsia akumbo
some help here please On Monday, August 11, 2014 2:47:09 PM UTC+1, 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

Re: Unable to access data in field during migration v1.7c2

2014-08-11 Thread Matthew Meyer
I am using apps.get_model but it seems to be giving me the model as it exists in the models.py and not the model before migrations that is currently part of the database. On Monday, August 11, 2014 4:31:24 AM UTC-5, Daniel Roseman wrote: > > On Friday, 8 August 2014 16:51:52 UTC+1, Matthew

RE: OS license requirements

2014-08-11 Thread Paul Greenberg
Perhaps, OSL would work better in this case? http://en.wikipedia.org/wiki/Open_Software_License Open Software License The Open Software License (OSL) is a software license created by Lawrence Rosen. The Open Source Initiative (OSI) has certified it as an open-source license... Read

django saml2 giving error on logout with openam as idp

2014-08-11 Thread ANOOP M.S
I was trying to implement django saml2 with openam as idp but it giving an error on logout. it says Exception at /saml2/ls/ Not successful according to: urn:oasis:names:tc:SAML:2.0:status:Requester Request Method: GET Request URL:

Re: MySQL Workbench Module to export Django model.py

2014-08-11 Thread ibegoldexteam
Hello, ist very good addition, how can i use this plugin?. I has intalled but i cant see this option on file/export, can you helpme about? thanks El miércoles, 14 de agosto de 2013 09:44:00 UTC-5, Daniel Lichtblau escribió: > > Hi, > > i've written a MySQL Workbench Module to export a Django

Re: m2m field 'through' another model that contains two of the same fields

2014-08-11 Thread Craig Jones
Thank you. I think that is exactly what I need. Moving to Django 1.7 now :-) On Monday, August 11, 2014 9:47:43 AM UTC-4, Collin Anderson wrote: > > in django 1.7 we added "through_fields" which I think would solve your > problem. > > >

Re: POSTGIS_VERSION error

2014-08-11 Thread richard . oates
Hi Chedi, Thanks a million. Putting POSTGIS_VERSION = (2,0,3) after the braces worked perfectly. Thanks again On Monday, August 11, 2014 2:29:34 PM UTC+1, chedi toueiti wrote: > Hi Rechard, > > I had the same issue some time ago, I solved it by defining the postgis > version outside the

Re: m2m field 'through' another model that contains two of the same fields

2014-08-11 Thread Collin Anderson
in django 1.7 we added "through_fields" which I think would solve your problem. https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField.through_fields -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: deploying djnago on apache

2014-08-11 Thread ngangsia akumbo
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*

Re: OS license requirements

2014-08-11 Thread Collin Anderson
LGPL sounds the closest to me. -- 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 1.7: ImportError: No module named .models

2014-08-11 Thread Malik Rumi
#admin.py: from apps..models import Articles, Sections ImportError: No module named .models I have seen this error before, and it went away when I changed INSTALLED APPS from to apps. because I have all my apps in a folder called apps. Now I have changed even that to Config because

Re: Adding LocaleMiddleware does not show pretty error pages

2014-08-11 Thread Collin Anderson
I've seen the "A server error occurred. Please contact the administrator." happen a few times to me. what does the traceback say? -- 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

Re: creating project in Django

2014-08-11 Thread Collin Anderson
my guess is your python installation is messed up, which is why it's opening IDLE instead of running your program. reinstalling python might fix it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

m2m field 'through' another model that contains two of the same fields

2014-08-11 Thread Craig Jones
The basic idea is that I want to track training and have a roster for each training session. I would like to also track *who* entered each person in the roster hence a table rather than just an M2M to the Member model within Training. So, here is what I currently have: class Training(

Re: POSTGIS_VERSION error

2014-08-11 Thread chedi toueiti
Hi Rechard, I had the same issue some time ago, I solved it by defining the postgis version outside the database configuration, this is what I think will fix it for you DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME':

Re: How to Construct a View with multiple and singular objects?

2014-08-11 Thread Malik Rumi
This is on hold while I wrestle with other problems. On Monday, August 4, 2014 11:43:52 AM UTC-5, Collin Anderson wrote: > > Do you get an error if you wrap it in an if statement? > > {% if object.sub_object %}{{ object.sub_object }}{% endif %} > > -- You received this message because you are

Re: POSTGIS_VERSION error

2014-08-11 Thread George Silva
You need a PostGIS database. That means a PostgreSQL server installed and running, with PostGIS installed. That syntax, of file name, only works for sqlite3 database provider. On Mon, Aug 11, 2014 at 9:46 AM, wrote: > Hi all, > > I am a newbie to Django and in

POSTGIS_VERSION error

2014-08-11 Thread richard . oates
Hi all, I am a newbie to Django and in my settings.py file I have put in my database config details as per below: DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': os.path.join(BASE_DIR, 'geodjango'), 'USER': 'richard',

RE: OS license requirements

2014-08-11 Thread Paul Greenberg
Hi Mike, I will be able to help you out. Are you local to US? Best Regards, Paul Greenberg, Esq. Law Office of Paul Greenberg 530 Main Street, Suite 102 Fort Lee, NJ 07024 E-mail: p...@greenberg.pro Tel: 201-402-6777 Fax: 201-301-8876 Cell: 212-380-7343 Web: http://www.greenberg.pro/

Re: 1.7: module has no attribute

2014-08-11 Thread Malik Rumi
Damn. I wouldn't say I was out of the woods yet, still other errors to deal with, but at least this one does seem to have gone away. Thanks, Sulphur. On Monday, August 11, 2014 1:01:34 AM UTC-5, Me Sulphur wrote: > > It is SlugField (F is capital) and not Slugfield > > Refer: >

Django Meetup in London, come along! :) [ Tuesday 12th August 2014 ]

2014-08-11 Thread James Pacileo
Hi chaps, just a heads up, we're having a meetup tomorrow in London, Tuesday 12th of August 2014. It's pretty much a relaxed social gathering at a pub, with a few short talks at the start. If you're around tomorrow come and join us, the more the merrier. :) Details here:

Re: Unable to access data in field during migration v1.7c2

2014-08-11 Thread Daniel Roseman
On Friday, 8 August 2014 16:51:52 UTC+1, Matthew Meyer wrote: > > I have a model with a FK to a field called employee. I'm trying to > migrate it to django.contrib.auth.models.User. I call > a migrations.RunPython command and when I try to access the data in the > field before I migrate it and

Re: Admin options are just ignored

2014-08-11 Thread James Bennett
It is there in the documentation. The first instance just uses "admin.site.register(Poll)" because it hasn't yet begun customizing. Once it starts explaining customization, it tells you, in that section: https://docs.djangoproject.com/en/1.6/intro/tutorial02/#customize-the-admin-form to change

Re: Admin options are just ignored

2014-08-11 Thread somenxavier
Thank you very much. You're right. In the official documentation there is no reference of that (step 2 ). Can anyboydy add it? Thanks, El dilluns 11 d’agost de 2014 0:02:34 UTC+2, Adrian Marshall va escriure: > > Think I found the

Re: deploying djnago on apache

2014-08-11 Thread ngangsia akumbo
thanks bro On Saturday, August 9, 2014 3:59:15 PM UTC+1, tea...@gmail.com wrote: > > Hello! > > Maybe this "how to" help you! > > http://teago.futuria.com.br/tip/instalando-modulo-wsgi-no-apache-2-com-django-14/ > > Tiago > > On Thursday, August 7, 2014 3:01:47 PM UTC-3, ngangsia akumbo wrote: >>

Re: 3 weeks of images proproblems

2014-08-11 Thread ngangsia akumbo
Thank you bro i figured it out this week end just left with the apache problem i have don all the configuration but when i open my page it takes me back to the apache default page skype: ngangsi.richard On Saturday, August 9, 2014 5:23:03 PM UTC+1, Collin Anderson wrote: > > templates >> >>

Re: Starting with Python 3 and Django 1.x?

2014-08-11 Thread Andreas Kuhne
You will get issues with some of the third-party plugins. For example getting mysql to work, requires that you use the oracle plugin and not the commonly used mysqldb plugin. Also south and django-storages require patching for them to work. We are rewriting our webpage and upgrading all

Re: 1.7: module has no attribute

2014-08-11 Thread Me Sulphur
It is SlugField (F is capital) and not Slugfield Refer: https://docs.djangoproject.com/en/dev/ref/models/fields/#slugfield On Monday, 11 August 2014 10:06:20 UTC+5:30, Malik Rumi wrote: > > I am trying to make my first django project using 1.7. When I try to run > python manage.py *