Re: getting 500 131 error on page not found

2014-10-22 Thread Sabine Maennel
Dear Tom, Thanks for your reply, but I did not have DEBUG=True on. With DEBUG=True the program behaves as expected. Things go wrong just when I set DEBUG=False. But thanks anyway for your reply. Am Dienstag, 21. Oktober 2014 21:02:48 UTC+2 schrieb Tom Evans: > > On Tue, Oct 21, 2014 at 4:19 PM,

Re: getting 500 131 error on page not found

2014-10-22 Thread Sabine Maennel
Dear Collin, you hit the nail right right on top. That was it! I feel so thankful towards you! I would never have thought about the context processors. I am so thankful to everybody here in the Django User group to always taking the time and helping me out. I will try to give back, as soon as

ImportError cannot import name

2014-10-22 Thread Juan Carlos
Hi everyone, When I execute the command: python manage.py runserver & The response is: Traceback (most recent call last): File "../manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in exec

ImportError failure

2014-10-22 Thread Juan Carlos
Hi everyone, When I execute python manage.py runserver it appers: ImportError: cannot import name 'example' from 'exsite' The relative code in the settings.py file is: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contri

Working with Google Analytics API

2014-10-22 Thread Muhammed Tüfekyapan
Hi Everyone, I want to make an app. User come on site, they signed in and give access to their google analytics account. And I generate some reports for them. I try to use Google Analytics API but I think I use the wrong one. https://developers.google.com/analytics/ Which one I should use?

Re: ImportError cannot import name

2014-10-22 Thread Sabine Maennel
Hello Juan, if your project is "exsite" and your app is "example" then you should probably just add "example" to the list of installed apps. Try it, hope it works. with kind regards Sabine Am Mittwoch, 22. Oktober 2014 06:16:25 UTC+2 schrieb Juan Carlos: > > Hi everyone, > >

How can I make the field layout of a model form dynamic?

2014-10-22 Thread DJ-Tom
Hi, I have a model that contains either a text or a numerical information, based on the type of the entry: equipment = models.ForeignKey(equipment) number = models.DecimalField('Amount/number', max_digits=6, decimal_places=2, blank=True, null=False, default=0) text = models.TextField("Text", bl

Re: ImportError failure

2014-10-22 Thread Serdar Dalgic
Hi Juan, I believe you might have a problem while importing "example". Can you check the line you're importing example and where did you put this "exsite.example" module? Your directory structure should be like this: mysite/ manage.py mysite/ __init__.py settings.py

no module in error log django-1.3.7

2014-10-22 Thread Kakar Nyori
Hello, I am trying to run a python app in pythonanywhere.com. If I run the project through the bash it runs without any error. But when I see it in the browser with the name like myproject.pythonanywhere.com, it display "something went wrong". And when I check in the error log, it show me this: no

Re: Django tutorial with eCommerce solution

2014-10-22 Thread willyhakim
Hi Mudassar, How are you doing? Have you looked into django oscar? Google it and take it from there. It is the best django ecommerce package. On Tuesday, October 21, 2014 9:11:15 PM UTC-5, Ezequiel Bertti wrote: > > Try this: > > http://www.getlfs.com/ > > On Tue, Oct 21, 2014 at 11:28 PM, Mudas

Re: Django tutorial with eCommerce solution

2014-10-22 Thread Gladson Simplício Brito
http://tangentlabs.github.io/django-oscar/ http://www.satchmoproject.com/ http://satchless.com/ https://www.django-cms.org/en/e-commerce/ http://cartridge.jupo.org/ 2014-10-21 22:10 GMT-04:00 Ezequiel Bertti : > Try this: > > http://www.getlfs.com/ > > On Tue, Oct 21, 2014 at 11:28 PM, Mudass

django 1.7 migrations: changes detected while nothing has changed ?

2014-10-22 Thread Michael
Hi, Does anybody know how are changes detected by the ```makemigrations``` command in django 1.7? It seems that I have a bug. The original post is on stackoverflow but no one has repl

Installing django on red hat linux box

2014-10-22 Thread robert brook
I have alot of experience installing packages on windows and mac and it goes very smoothly. I do not have alot of experience doing the installs on a Linux box. I am running into problems installing 4 packages. The Lan team tried yum, but the basic django packages were not available. Then I tri

Re: django 1.7 migrations: changes detected while nothing has changed ?

2014-10-22 Thread Markus Holtermann
Hey Michael, The problem seems to be the same as in #23473 https://code.djangoproject.com/ticket/23473 . Try adding a __eq__ method on the classes marked as deconstructible. /Markus On October 22, 2014 6:11:39 PM CEST, Michael wrote: >Hi, > >Does anybody know how are changes detected by the

Re: Installing django on red hat linux box

2014-10-22 Thread Tom Lockhart
On Oct 22, 2014, at 9:12 AM, robert brook wrote: > > I have alot of experience installing packages on windows and mac and it goes > very smoothly. > I do not have alot of experience doing the installs on a Linux box. > > I am running into problems installing 4 packages. > > The Lan team tried

Re: Installing django on red hat linux box

2014-10-22 Thread Pat Claffey
Hi, I assume you have python installed successfully. What version? If you install python 3.4 then pip should install automatically (unless 3.4. is a second python install in which case pip does not install) You should be able to see the python (and pip) executables in /usr/bin or /usr/local/

Re: Installing django on red hat linux box

2014-10-22 Thread robert brook
I have installed a virtualenv on my local machine to do the development. On the development web server using a virutal environment is not really important. The packages that I am interested in are not available through yum. Trying to install the packages locally displays header errors. Any sug

Re: Installing django on red hat linux box

2014-10-22 Thread Pat Claffey
once I got pip sorted out it was really easy install django (just pip install django) - so advise is to get pip working. You will need it for other python packages also. On Wednesday, October 22, 2014 5:12:10 PM UTC+1, robert brook wrote: > > > I have alot of experience installing packages on

Re: Installing django on red hat linux box

2014-10-22 Thread robert brook
I have python 3.3. Had to coerce red hat to do allow the install 3.3. Must have been a stripped down version. version 6 came with python 2.6 installed. Must be a stripped down version as pip does not come with python 3.3 I believe I need the package , python3.3-dev, to get the headers to uti

Re: Installing django on red hat linux box

2014-10-22 Thread robert brook
I am a contractor in a large organziation. They must have everything locked down. I downloaded get-pip.py and got errors that seemed to be proxy, firewall security issues, that is why I fell back to implementing through setup.py and ran into the header issues. Thanks On Wednesday, October 22,

[ANNOUNCE] Bugfix releases issued

2014-10-22 Thread James Bennett
The first bugfix release in the 1.7 series is out, along with bugfix releases for the supported 1.4 and 1.6 release series, and what will hopefully be the final release of the 1.5 series, which is now past end-of-life. Full details are available on the Django project weblog: https://www.djangopro

problem with TransactionTestCase and sqlite

2014-10-22 Thread Tim Court
Hi, I'm having a problem using a TransactionTestCase with a sqlite database and was hoping someone could tell me where I've gone wrong. I'm porting a project from Django 1.6 to 1.7 that uses LiveServerTestCase with a sqlite test database. I converted all of my initial_data fixtures to be prope

Re: Installing django on red hat linux box

2014-10-22 Thread Pat Claffey
One final suggestion... If you are using python3.3 then pip may be called pip3.3 You could try "which python3.3" or "which python" (if python points to python3.3). This should give you path to python executable directory. If you look there you may be lucky and see a pip executable - perhaps

Re: django 1.7 migrations: changes detected while nothing has changed ?

2014-10-22 Thread Michael
Thanks, that fixed it. Le mercredi 22 octobre 2014 11:20:43 UTC-5, Markus Holtermann a écrit : > > Hey Michael, > > The problem seems to be the same as in #23473 > https://code.djangoproject.com/ticket/23473 . Try adding a __eq__ method > on the classes marked as deconstructible. > > /Markus >

django-admin creates the views.py files in the wrong place!

2014-10-22 Thread Aliane Abdelouahab
Hi, Django 1.7 when a beginner runs the first tutorial, he has to change the views.py file outside the app to the whole project itself. i found this, http://stackoverflow.com/questions/22011791/importerror-no-module-named-views and it seems it is related to Django 1.6 too? -- You received thi

How do I display list of pages with a ListView object?

2014-10-22 Thread Daniel Grace
Hi, How do I display list of pages with a ListView object? For example display a link for each page (except maybe the current page): previous 1 2 3 4 next Currently I use the following in a view to display "previous" and "next": {% if page_obj.has_previous %} previous {% endif %} Page {{ page_ob

Re: How do I display list of pages with a ListView object?

2014-10-22 Thread Daniel Grace
I found a solution by writing a custom template tag, passing in the current page and number of pages from page_obj. Is that an acceptable solution or can this be done without a custom tag? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Re: How can I make the field layout of a model form dynamic?

2014-10-22 Thread Bill Freeman
Perhaps the most djangoish way would be to create two model forms, with different fields excluded, and choose which to render in the template. Or you could render CSS style information to hide one or the other. Or you could use JavaScript to hide one or the other based on something else that you

Is there a way to supress blank lines in the HTML?

2014-10-22 Thread Daniel Grace
Hi, Is there a way to suppress blank lines in the HTML? I tried using the spaceless tag but it is overkill for what I want. I just want to suppress the blank lines from the HTML and not all space. Any ideas? Thanks -- You received this message because you are subscribed to the Google Groups "D

Re: Import error in settings.py

2014-10-22 Thread Felix Unchained
Just thought you might get a kick out of the fact that I just found this very useful – 4 years later. Thanks. On Tuesday, February 12, 2008 7:27:45 PM UTC-8, Julien wrote: > > Great! Thanks a lot, it worked! > > Here's a little function that I made and that is quite helpful: > > def get_class(c

Re: AppConfig where to execute initialization queries?

2014-10-22 Thread Oliver George
Did you find a good solution for this? On Monday, October 6, 2014 11:56:15 PM UTC+11, Marc Aymerich wrote: > > Hi, > I have been bitten by unexpected behaviors when running tests because on > AppConfig.ready() I was initializing some stuff that depends on DB stored > data. Reading the django doc

Re: Installing django on red hat linux box

2014-10-22 Thread Kelvin Wong
Take a look at the Software Collections (ver 1.1 works on RHEL 7) http://developerblog.redhat.com/2013/01/28/software-collections-on-red-hat-enterprise-linux/ $ sudo yum install python33-python-devel $ scl enable python33 bash You can then install everything locally in your application user's h

Django REST Framework

2014-10-22 Thread Max Nathaniel Ho
Hi all, I just came across Django REST Framework. From what I have read up so far, its a Web API framework. What does it do and what is the difference between this and the regular Django Web Framework? Thanks! -- You received this message because you are subscribed to the Google Groups "Dj

Re: Django REST Framework

2014-10-22 Thread Russell Keith-Magee
Hi Max, Django ReST Framework, as the name suggests, is a framework for building ReST APIs in Django. It's not officially part of the Django framework, but it's creator and principle maintainer - Tom Christie - is a member of the Django core team. Tom recently held a Kickstarter to fund v3 of the

Re: ImportError cannot import name

2014-10-22 Thread Sabine Maennel
Hello Juan, I think your settings file should look like this: In *settings.py* I have: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', '

Re: ImportError failure

2014-10-22 Thread Juan Carlos
Hi Serdar, Sure, you're right. Thanks, thank you very much! Regards, Juan El miércoles, 22 de octubre de 2014 06:53:06 UTC-5, Serdar Dalgic escribió: > > Hi Juan, > > I believe you might have a problem while importing "example". Can you > check the line you're importing example and where did you