Re: Customize admin look & fee (Django 1.7 / Windows)

2014-09-25 Thread Dario Chemello
Uhm. site_title|default:_('Dario Administration') Is site_title valorized??? I think, if yes, that the problem is only there. But on tutorial, imho, this part is not so clear. Il giorno venerdì 26 settembre 2014 08:37:58 UTC+2, Dario Chemello ha scritto: > > Yes! > And I change on the t

Re: Customize admin look & fee (Django 1.7 / Windows)

2014-09-25 Thread Dario Chemello
Yes! And I change on the template only the "title": {% extends "admin/base.html" %} {% block title %}{{ title }} | {{ site_title|default:_('Dario Administration') }}{% endblock %} {% block branding %} {{ site_header|default: _('Dario Administration') }} {% endblock %} {% block nav-global %

Mandrill API response 500 Failed to send a message

2014-09-25 Thread Damián Pérez
Hello, I'm using Django 1.7 and Mandrill to send emails and work fine in my project, but i get the next error with django-allauth: Mandrill API response 500 Failed to send a message to [{'type': 'to', 'email': u'myem...@gmail.com', 'name': ''}], from webmaster@localhost Request Method: POST R

Re: Django installation issue on Win 7 Pro 64 Bits

2014-09-25 Thread Ezequiel Bertti
Try to run your CMD on administration rights, is like *sudo *on unix system... http://technet.microsoft.com/pt-br/library/cc947813(v=ws.10).aspx I think is better install the setup_tools, (easy_install and pip) to install django and another projects in your python. Try to use jetbrains IDE for p

Re: Django installation issue on Win 7 Pro 64 Bits

2014-09-25 Thread Mike Dewhirst
On 26/09/2014 10:17 AM, Ivo Roupa wrote: Hello, My OS is Win 7 Pro 64 Bits, I have Python 2.7 correctly installed and I'm trying to install Django 1.7 but I'm getting the following error: "c:\Program Files (x86)\Python27\lib\site_packages\win32com\gwn_py\__init__.py: Permission denie

RE: Django installation issue on Win 7 Pro 64 Bits

2014-09-25 Thread peterqi
django-users+unsubscr...@googlegroups.com Date: Thu, 25 Sep 2014 17:17:08 -0700 From: iro...@gmail.com To: django-users@googlegroups.com Subject: Django installation issue on Win 7 Pro 64 Bits Hello, My OS is Win 7 Pro 64 Bits, I have Python 2.7 correctly installed and I'm trying to install Dja

Django installation issue on Win 7 Pro 64 Bits

2014-09-25 Thread Ivo Roupa
Hello, My OS is Win 7 Pro 64 Bits, I have Python 2.7 correctly installed and I'm trying to install Django 1.7 but I'm getting the following error: "c:\Program Files (x86)\Python27\lib\site_packages\win32com\gwn_py\__init__.py: Permission denied." I forgot to mention that I have Admi

Re: Less files not compressed on production

2014-09-25 Thread Mike Dewhirst
On 26/09/2014 12:11 AM, Denis Simonet wrote: The less files are collected to STATIC_ROOT: Did you do that via collectstatic? The following works for me ... /usr/bin/python /var/www/ssds/manage.py collectstatic --settings=ssds.settings.staging --noinput ... in Django 1.6.x on Ubuntu 12.04 an

Re: kwargs are not available in the get_context_method of generic CreateView, why?

2014-09-25 Thread Sabine Maennel
Danke Collins, das wars! Am Donnerstag, 25. September 2014 22:48:45 UTC+2 schrieb Collin Anderson: > > print self.kwargs > -- 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

1 named url per page/screen?

2014-09-25 Thread Malik Rumi
1. I am trying to understand the documentation here: https://docs.djangoproject.com/en/1.7/topics/http/urls/#naming-url-patterns Let us suppose I have a model and folder on mysite called Colors. Within Colors there are several individual documents: blue, green, yellow. If blue, green, and yell

Re: kwargs are not available in the get_context_method of generic CreateView, why?

2014-09-25 Thread Collin Anderson
print self.kwargs -- 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@go

Re: Customize admin look & fee (Django 1.7 / Windows)

2014-09-25 Thread Collin Anderson
Did you save your template here? C:/Users/Dario/mysite/templates/admin/base_site.html -- 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...@g

Re: trouble in startproject

2014-09-25 Thread Collin Anderson
Does django-admin.py exist in either C:\Python27 or C:\Python27\Scripts? -- 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.co

Re: Django hosting

2014-09-25 Thread Collin Anderson
At work, we're in the process of switching from rackspace to linode. -- 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. T

Re: trying to load a view

2014-09-25 Thread Collin Anderson
Nothing is defined for url(r'^$'), so you should be getting that error. This should work though: http://127.0.0.1:8000/hello/ -- 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

Re: Open Django template in dialog box (not in window)

2014-09-25 Thread Collin Anderson
I figured it out. html() isn't chainable. It needs to be one of these: $.get(this.href, function(data){ $("#popup").html(data) $("#popup").dialog({modal: true}).dialog('open') }) or $.get(this.href, function(data){ $("#popup").dialog({modal: true}).dialog('open').html(data) }) or, after I

kwargs are not available in the get_context_method of generic CreateView, why?

2014-09-25 Thread Sabine Maennel
Please help: I am using Django's Class based Generic CreateView: *url:* http://127.0.0.1:8000/buchung/pilotkurs/2/ *urls.py* urlpatterns = patterns("", url(r'^(?P[a-z0-9_-]{3,50})/(?P\d+)/$', OrderCreateView.as_view(), name='form'), ) There are clearly kwargs, that I use. My context proces

Re: Upgrading Django (to 1.7)

2014-09-25 Thread Fred Stluka
Sabine, I'm not sure about the new 1.7 Migrations, but with South, restarting your migrations is easy. I'm currently doing it on my project, because we have a long convoluted history of changes before and after we started using South, and have made some mistakes along the way (like editing migra

Re: Upgrading Django (to 1.7)

2014-09-25 Thread Andrew Pinkham
Fred, Thank you! Good luck with the upgrade! Andrew -- 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

Re: Upgrading Django (to 1.7)

2014-09-25 Thread Andrew Pinkham
Hi Sabine, Thank you! It is really nice getting positive feedback. The migrations section (Part II next week!) is a very basic introduction, aimed at people who have never used South or native migrations. One of the key takeaways (hopefully) of the article is the fact that it is easy to manually

Re: Upgrading Django (to 1.7)

2014-09-25 Thread Fred Stluka
Andrew, Good stuff! Thanks! We're still on 1.4, but planning a move soon to 1.7. Very helpful. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Gla

Customize admin look & fee (Django 1.7 / Windows)

2014-09-25 Thread Dario Chemello
Hi all, I've read a lot about other posts regardind problems to this part of the tutorial: https://docs.djangoproject.com/en/1.7/intro/tutorial02/#customize-the-admin-look-and-feel I've tried everything, but nothing happen! - using TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')] as in

Re: Compress does not include less files correcty

2014-09-25 Thread Denis Simonet
horizon by default uses lesscpy (python) instead of lessc (javascript). Obviously lesscpy did not like our less code. So we changed this: COMPRESS_PRECOMPILERS = ( ('text/less', 'lesscpy {infile}'), ) To this: COMPRESS_PRECOMPILERS = ( ('text/less', 'lessc {infile} {outfile}'), )

Compress does not include less files correcty

2014-09-25 Thread Denis Simonet
Hi, We intend to extend openstack's Horizon, which is a Django application. The first goal: add some custom CSS. Our approach is to create an own Django project and, in settings.py, to import Horizon's default settings ("from openstack_dashboard.settings import *"). After this import we extend

Less files not compressed on production

2014-09-25 Thread Denis Simonet
Hi, We intend to extend openstack's Horizon, which is a Django application. The first goal: add some custom CSS. Our approach is to create an own Django project and, in settings.py, to import Horizon's default settings ("from openstack_dashboard.settings import *"). After this import we extend

Re: Django 1.7 test migration on ForeignKeys with default value

2014-09-25 Thread Christian Gossy
Found a solution and posted it at stackoverflow http://stackoverflow.com/questions/26033992/django-1-7-migration-error-on-foreignkey-with-default-value/26039810#26039810 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Django Developer looking for job

2014-09-25 Thread Mariusz Dev
Hello, I'm looking for remote jobs for Junior Django Developer. I have one year of experience in Django and more in technologies frontendowych: HTML5/CSS3 (Bootstrap), JS. If anyone is interested, please message - I'll send my resume and portfolio. My email: mariusz.developm...@gmail.com B

Re: Ldap authentication using django_auth_ldap

2014-09-25 Thread Mario Gudelj
I've sent the last email prematurely. I'm sorry about that. The way I normally set this up is I'll use 2 backends: AUTHENTICATION_BACKENDS = ( 'django_auth_ldap.backend.LDAPBackend', 'django.contrib.auth.backends.ModelBackend', ) If the LDAP backend fails the Django will try

Re: Ldap authentication using django_auth_ldap

2014-09-25 Thread Mario Gudelj
If that's the actual file it certainly won't work. You don't even have ldap server address setup. And those dots in dn, what is that? On 25/09/2014 9:09 pm, "RDN" wrote: > This is my settings.py file. I am trying to create an application where > the user will be able to login using their windows

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-25 Thread caio
Hello, Give a try to ninja-ide: http://ninja-ide.org/ It has many plugins, including for django Regards. On Wed, Sep 24, 2014 at 8:58 PM, Adam Stein wrote: > On Wed, 2014-09-24 at 14:30 -0700, John Schmitt wrote: > > I appreciate what you said about deploying and not editing "live" files > d

Re: Problem with interactive shell.

2014-09-25 Thread baldnbad
Entering the party a bit late I had the exact same error message. Caused by a folder called 'code'. Renamed to mycode, problem gone. Cheers On Sunday, 17 February 2008 13:50:34 UTC, PB wrote: > > When I try to run the interactive shell I get the following error: > > File "manage.py", line

Re: trouble in startproject

2014-09-25 Thread Mike Dewhirst
On 25/09/2014 9:14 PM, Jorge Andrés Vergara Ebratt wrote: Do you have django installed? pip install django Do you have pip installed? http://pip.readthedocs.org/en/latest/installing.html On Sep 25, 2014 6:08 AM, "nandita srivastava" mailto:nanditas...@gmail.com>> wrote: Hi, I am

Re: Ldap authentication using django_auth_ldap

2014-09-25 Thread Lachlan Musicman
When you say "running properly" do you mean "we can log in to the regular site, but not the admin site"? Or do you mean "runserver starts without error"? Cheers L. On 25 September 2014 17:03, RDN wrote: > This is my settings.py file. I am trying to create an application where the > user will be

Re: trouble in startproject

2014-09-25 Thread Jorge Andrés Vergara Ebratt
Do you have django installed? pip install django On Sep 25, 2014 6:08 AM, "nandita srivastava" wrote: > Hi, > > I am new to django. I have installed django. I am trying to create new > project using command "django-admin.py startproject mysite" but I am > getting "django-admin.py is not recogniz

trouble in startproject

2014-09-25 Thread nandita srivastava
Hi, I am new to django. I have installed django. I am trying to create new project using command "django-admin.py startproject mysite" but I am getting "django-admin.py is not recognized as an internal or external command, operable program or batch files". I have set up the path "C:\Python27;C

Django 1.7 test migration on ForeignKeys with default value

2014-09-25 Thread Christian Gossy
I have a problem concerning testing my app including migrations on ForeignKey modelfields having a default value (see example below, the field is marked red). I don't know if that's a bug in Django 1.7 testing migrations or if I'm doing something wrong *models.py:* RULE_SET_MODE__ACTIVE = "A

Ldap authentication using django_auth_ldap

2014-09-25 Thread RDN
This is my settings.py file. I am trying to create an application where the user will be able to login using their windows credentials. import os import ldap from django_auth_ldap.config import LDAPSearch, GroupOfNamesType BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECRET_KEY = '_

Re: Django hosting

2014-09-25 Thread Andreas Kuhne
Hi Sabine, I would also recommend AWS mainly because of the amount of resources you have at your disposal by using them. We changed from a local provider in Sweden to AWS in Europe, because we needed global reach. By using the resources they have (CDN mainly) we were able to get "closer" to our cu

Re: Django hosting

2014-09-25 Thread Babatunde Akinyanmi
Hi Sabine, I use Redhat's Openshift. On 25 Sep 2014 07:55, "Sabine Maennel" wrote: > Thank you very much for your advice Marc, it is very valuable to me, > especially the part that my hosting provider for today does not need to be > that of the future. My problem right now is that I am under pres

Re: AppRegistryNotReady: Models aren't loaded yet.

2014-09-25 Thread Sabine Maennel
Thanks Rusell, that helps. On Thu, Sep 25, 2014 at 1:52 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > Hi Sabine, > > No - you don't put it in your settings file; the settings file is loaded > as part of the setup call. > > As a completely manual process, you can just run the followi