Re: Django 1.6.4 debug-toolbar confusing error

2015-03-08 Thread Martin Torre Castro
I have same problem. May it be related to urlconf? On Friday, 23 May 2014 12:06:19 UTC+2, Florian Auer wrote: > > Hi > > I am running 2 django 1.6.4 projects, both with debug toolbar enabled. > > The first one ist a simple project, following the a cookbook tutorial and > the toolbar works fine in

Re: Django 1.6.4 debug-toolbar confusing error

2015-03-08 Thread Martin Torre Castro
I fixed it by following this http://django-debug-toolbar.readthedocs.org/en/1.2.2/installation.html In my case, I had the wrong name in INSTALLED_APPS and I lacked this piece of code in urls: if settings.DEBUG: import debug_toolbar urlpatterns += patterns('', url(r'^__debug__/'

Heroku: without NULL bytes error with "2 scoops" structure

2015-06-13 Thread Martin Torre Castro
Hello, I posted this because I can't deploy a webapp with Heroku. Any ideas? http://stackoverflow.com/questions/30816367/heroku-string-without-null-bytes-with-several-requirements-files Thanks for reading -- You received this message because you are subscribed to the Google Groups "Django use

Re: Heroku: without NULL bytes error with "2 scoops" structure

2015-06-14 Thread Martin Torre Castro
I resolved this. I was doing wrong and not making git commit when editing requirements.txt files. On Saturday, 13 June 2015 10:00:18 UTC+2, Martin Torre Castro wrote: > > Hello, > > I posted this because I can't deploy a webapp with Heroku. Any ideas? > > > http://s

Not getting static files with django & heroku deployment

2015-07-04 Thread Martin Torre Castro
Hello, I'm developing a webapp with Django 1.7 (project_name is "sonata") and the project layout from the "Two scoops of Django 1.6", so I have a 3-tier basic folder tree. .├── requirements└── sonata ├── person │ └── templatetags ├── registration ├── sonata │ └── setting

Introducing myself and my first question

2014-07-19 Thread Martin Torre Castro
Hello, my name is Martin and I'm a computer engineer from Spain. I'm going to start a new project with a colleague and I decided to use Django because we searched for free opensource tools and I'm in love with Python. We have made a couple of tutorials (the official one and "Tango with django"

Re: Advanced SQL Question

2014-07-19 Thread Martin Torre Castro
I suppose you can always switch to the raw SQL queries instead of using Django's ORM. You have to type more, but it will be more efficient if you know how to code SQL for your DB. On Thursday, 19 June 2014 23:49:52 UTC+2, G Z wrote: > > I have a multi-level database that uses concatenated fore

Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-19 Thread Martin Torre Castro
Hello, my name is Martin and I'm a computer engineer from Spain. I'm going to start a new project with a colleague and I decided to use Django because we searched for free opensource tools and I'm in love with Python. We have made a couple of tutorials (the official one and "Tango with django"

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-20 Thread Martin Torre Castro
ter that starting to program from the terminal. I need to know this for adapting Eclipse to activating the virtualenv every times it opens if virtualenv works as expected. Thanks On Sunday, 20 July 2014 04:29:53 UTC+2, Thomas wrote: > > On 7/19/14 6:41 PM, Martin Torre Castro wrote: >

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-21 Thread Martin Torre Castro
n future. On Sunday, 20 July 2014 03:41:11 UTC+2, Martin Torre Castro wrote: > > Hello, > > my name is Martin and I'm a computer engineer from Spain. I'm going to > start a new project with a colleague and I decided to use Django because we > searched for free opensourc

Re: Introducing myself and my first question

2014-07-21 Thread Martin Torre Castro
e same > thing through Eclipse's interface. The worst that can happen is that your > test server doesn't work. > > > > > On Sat, Jul 19, 2014 at 3:09 PM, Martin Torre Castro > wrote: > >> Hello, >> >> my name is Martin and I'm a compu

Re: Introducing myself and my first question

2014-07-21 Thread Martin Torre Castro
rface. The worst that can happen is that your > test server doesn't work. > > > > > On Sat, Jul 19, 2014 at 3:09 PM, Martin Torre Castro > wrote: > >> Hello, >> >> my name is Martin and I'm a computer engineer from Spain. I'm going to

Multi-table inheritance models not working for me

2014-10-08 Thread Martin Torre Castro
Hello, I want to make a hierarchy over a DB design as described in "Fundamentals of database systems" from Elmasri & Navathe. This implies that when I have some info which is shared for many classes/tables, I can put it in a main parent table and use the main table id as foreign key in the ch

How to deny access to a logged user directly to a specific URL

2014-10-17 Thread Martin Torre Castro
Hello, at my project we need some sort of system for allowing/denying some access to an URL. The example, we want to make some kind of wizard. 1. The user inputs the first object at the the first screen (A screen), and then he press "Continue". 2. Now we get the data and redirect to

Advice about composing several templates

2015-01-04 Thread Martin Torre Castro
Hello, I'm developing a web application with Django and we have met a dilemma about the design. We were making one template for every screen, but right now we have detected that some parts of of the screen with the information are repeated all over the different screens. For example, when comi

How and where should I put a version number in my Django project?

2016-05-03 Thread Martin Torre Castro
I'm making a Django project consisting of several apps and I want to use a version number for the whole project, which would be useful for tracking the status of the project between each time it comes to production. I've read and googled and I've found how to put a version number for each dj

Re: Not getting static files with django & heroku deployment

2015-09-19 Thread Martin Torre Castro
tps://devcenter.heroku.com/articles/django-app-configuration >> >> Try that first. Follow the directions carefully, then let us know if you >> still need help. >> >> >> On Saturday, July 4, 2015 at 7:13:39 PM UTC-5, Martin Torre Castro wrote: >>>

Best way to trigger javascript function when returning a page from django view

2015-09-19 Thread Martin Torre Castro
Hello, I have a django project where I make requests to the server views both by AJAX and the usual simple URL requests to Django. The thing is that I have made one javascript function for storing the forms contents in the HTML5 webstorage and I want to clear the stored data after coming from

Re: DJANGO

2015-09-19 Thread Martin Torre Castro
Search in Google "tangowithdjango" and "gettingstartedwithdjango". The first one maybe is best fr beginners On Thursday, 10 September 2015 17:41:07 UTC+2, Arindam sarkar wrote: > > The django tutorial itselt > https://docs.djangoproject.com/en/1.8/intro/tutorial01/ > On Thu, Sep 10, 2015 at 8:0

Re: Ajax in Django

2015-09-19 Thread Martin Torre Castro
If you use jQuery (I do), making AJAX requests is incredibly easy. Just use the $.get(), $.post() or $.ajax() functions. If you have any doubt, the api.jquery.com page has all the references and information for using them (search for jQuery.get(), jQuery.post() and jQuery.ajax() ). On Monday,

Re: Forms questions

2015-09-19 Thread Martin Torre Castro
If there's a file in the form data, I'm no expert but I have fought a little with forms and files and I advise you to look in the internet for multipart forms and file inputs inside forms. On Tuesday, 25 August 2015 21:12:46 UTC+2, Hugo Kitano wrote: > > I've realized that the action field in th

What am I supposed to do if I want a Wizard?

2015-12-09 Thread Martin Torre Castro
Hello, I was investigating about form wizards in Django, but I have seen that recently this has changed in the deprecation timeline doc: "The form wizard has been refactored to use class-based views with pluggable backends in 1.4. The previous implementation will be removed." I understand that

Django formtools wizard produces blank page (No error returned)

2016-01-30 Thread Martin Torre Castro
I'm trying to use the formwizard in formtools package with no success (I was able to do it when the package was inside Django in earlier versions). The only response I got is: [23/Jan/2016 11:06:50]"GET /registration/wizard HTTP/1.1" 200 13729 and a blank page. No errors in browser or Ecli