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 &quo

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 &quo

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

Re: Does Django detect changes in models Meta ?

2014-09-08 Thread Michael A. Martin
Migrations in 1.7 is the replacement for south. > On Sep 2, 2014, at 1:44 PM, Norman Bird wrote: > > OK, I found out that in order to change the schema of the tables one has to > install and run a migration tool. I used south. just install south and check > out their website for basic use and

Re: Does Django detect changes in models Meta ?

2014-09-08 Thread Michael A. Martin
Maybe Migrations is just really buggy? I am using PostgreSQL as the backend. I added a column with a default value and then did makemigrations then migrate. It doesn't work. I get a very long error. > On Sep 7, 2014, at 8:54 AM, Malik Rumi wrote: > > Django 1.7rc2 here. Same question, same hop

Re: Newbie question about Django and Python versions.

2014-09-08 Thread Michael A. Martin
Is anyone else trying out 1.7? I do a jython manage.py runserver 8080 and then it seems to want to render but isn't. > On Sep 8, 2014, at 1:30 PM, Andrey Consalter wrote: > > Hi there, > > I've been studying programming with Python 2.7 and Django 1.6, and a few days > ago Django 1.7 was rele

Has anyone had issues with the server in 1.7 running dog slow or not at all?

2014-09-08 Thread Michael A. Martin
Has anyone had issues with the server in 1.7 running dog slow or not at all? I was using a beta version of 1.7 and the server ran on top of jython with no issue. The only thing that was failing was migrations. Now I do a jython manage.py runserver 8080 and the browser seems to not want to rende

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Michael A. Martin
It seems like when I take all the CSS and JS the html renders with images. But this site rendered with a previous version. I pretty much ruined this dev project today trying to figure it out. I don't know why this worked on the older version but not this version. > On Sep 11, 2014, at 9:38 AM,

Re: Django 1.7 has issues rendering pages on laptop

2014-09-12 Thread Michael A. Martin
rving up your static > files, which is a possibility. > > -James > > > >> On Friday, September 12, 2014, Michael Martin >> wrote: >> After trying so many things regarding the settings in Django I found that >> the issue isn't with the official 1.7 stab

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

Obtaining content from Git

2014-11-21 Thread martin f krafft
it https://groups.google.com/d/optout. digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Obtaining content from Git

2014-11-22 Thread martin f krafft
groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20141122212847.GA26476%40fishbowl.rw.madduck.net. For more options, visit https://groups.google.com/d/optout. digital_signature_gpg.asc Description: Digital signature (see

Re: Obtaining content from Git

2014-11-23 Thread martin f krafft
sit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20141124054512.GA14198%40fishbowl.rw.madduck.net. For more options, visit https://groups.google.com/d/optout. digital_signature_gpg.asc Descrip

Re: Obtaining content from Git

2014-11-24 Thread martin f krafft
roups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20141124090640.GA30500%40albatross.lehel.madduck.net. For more o

Re: Obtaining content from Git

2014-11-24 Thread martin f krafft
web visit https://groups.google.com/d/msgid/django-users/20141124104910.GA11742%40albatross.lehel.madduck.net. For more options, visit https://groups.google.com/d/optout. digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Re: Obtaining content from Git

2014-11-24 Thread martin f krafft
g emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-user

Re: Obtaining content from Git

2014-11-24 Thread martin f krafft
net. For more options, visit https://groups.google.com/d/optout. digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

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

Django active sessions

2019-03-22 Thread Alejandro Martin Herve
Hi, I would like to know if there is a way to detect if a session in no longer active, I'll explain better. I have a setup in my web app where when a user logs in automatically his session is set to expire at browser close: request.session.set_expiry(0) But despite this work effectively, the s

Django active sessions

2019-03-22 Thread Alejandro Martin Herve
I would like to know if there is a way to detect if a session is no longer active. I have a Django web app that when a user logs in, his session is set to expire at browser close request.session.set_expiry(0) this will close the session at browser close efectively but his expire time gets a de

Re: Not getting static files with django & heroku deployment

2015-09-19 Thread Martin Torre Castro
s las two books "2 scoops...". > > I will look about this links along today (kind of holidays here) and > answer soon. > > Thanks > El 5/7/2015 3:44 a. m., "Malik Rumi" > > escribió: > >> Hi Martin, >> >> First let me say unapologeti

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

Custom field reference flowchart

2016-01-12 Thread martin f krafft
ns, visit https://groups.google.com/d/optout. digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

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

Re: Looking to join a team in a Django Project to gain Experience

2020-11-30 Thread Carlos Romero Martin
I'm interested Regards Carlos Romero Martin Le lundi 30 novembre 2020, 5 h 16 min 24 s CET Nagaraju Singothu a écrit : > I'm interested > > On Mon 30 Nov, 2020, 8:56 AM ,

Re: Ongoing project

2020-12-19 Thread Carlos Romero Martin
Hello Peter, I’m interested to join team. Carlos Romero Martin Le vendredi 18 décembre 2020, 17 h 49 min 30 s CET Sujayeendra G a écrit : > Hello Peter, > I’m interested to join team. -- -- You re

Re: Redesign of agricultural project with python django and next.js technologies.

2024-02-18 Thread Carlos Romero Martin
nterfaces for rating products and vendors. >>>> · Design and develop forms for users to submit ratings and reviews. >>>> · Implement the logic to display ratings and reviews of products and >>>> vendors on their respective pages. >>>> >>>> Messaging: >>&

Django FastCGI and static files

2019-09-17 Thread Martin Jaan Leesment
Hey I'm new to serving Django website on a shared server as well as using fastcgi and .htaccess so this might be a basic question. Namely I'm having difficulties serving static content. I've tried playing with htaccess rules, but no luck yet. My project structure: myproject/ ├── myapp │ ├──

Re: Django FastCGI and static files

2019-09-17 Thread Martin Jaan Leesment
It works by moving static directory but was wondering about a more intelligent solution, that is, if it exists with fastcgi. -- 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: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-20 Thread Martin Conte Mac Donell
On Wed, Jan 21, 2009 at 2:35 AM, Keyton Weissinger wrote: > > Oh and just to re-state, this exact same code works like a champ on > import of School or Parent data (neither of which have a ManyToMany > field). > > Keyton I can't reproduce this exception. Try to print import_object_dict just befo

Re: Possible Model Inheritance Issue? Error: [Model_Name] instance needs to have a primary key value before a many-to-many relationship can be used

2009-01-21 Thread Martin Conte Mac Donell
Again, i can't reproduce your problem. It's working using SVN HEAD with your model and this view: http://dpaste.com/111590/. Could you try to use that dict and Student(**mydict) instead of "model_import_info.model_for_import.objects.create" ? Regards, M On Wed, Jan 21, 2009 at 3:06 PM, Keyton W

Re: TypeError: 'tuple' object is not callable

2009-01-23 Thread Martin Conte Mac Donell
On Fri, Jan 23, 2009 at 8:37 AM, joti chand wrote: > File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py", > line 205, in _get_url_patterns >patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) > > File "C:\Python25\Lib\site-packages\django\core\urlresolve

Re: Strange Model behavior

2009-01-25 Thread Martin Conte Mac Donell
On 1/26/09, Mark Jones wrote: > class Fails(models.Model): > code = models.CharField(max_length=64) > quizid = models.IntegerField(null=False, blank=False) > published_on = models.DateTimeField(auto_now_add=True) > > def __init__(self, *args, **kwargs): > super(Fails, sel

Re: Using hashing for password checking in auth module

2009-01-30 Thread Martin Conte Mac Donell
On Fri, Jan 30, 2009 at 5:36 PM, Guy Rutenberg wrote: > I've started using Django recently and when I've used the auth module > I noticed that it only verifies a plain text password. I'm not > comfortable with this behaviour as it means that passwords have to be > sent by login forms in plain tex

Re: Filter by ForeignKey reference??

2009-02-02 Thread Martin Conte Mac Donell
On Mon, Feb 2, 2009 at 10:11 PM, Markus T. wrote: > > Hi, > > I have two simple models: > > class Country(models.Model): > name = models.CharField(_("Name"), max_length=50, > unique=True) > > class Profile(models.Model): > name = models.CharField(_("Name"), max_length=50, > un

Re: Filter by ForeignKey reference??

2009-02-02 Thread Martin Conte Mac Donell
On Mon, Feb 2, 2009 at 11:59 PM, Martin Conte Mac Donell wrote: > If you need country_id/country_name: > >>>> Profile.objects.values('country__id', >>>> 'country__name').select_related('country').distinct() > [{'country__n

Re: forms not valid

2009-02-02 Thread Martin Conte Mac Donell
On Mon, Feb 2, 2009 at 11:35 PM, vierda wrote: > > Hi all, I have three forms and none of these forms pass is_valid() > test when I test in intrepeter. kindly help for point out what's > problem with my forms. thank you. > > from django.contrib.auth.models import User > from django.contrib.auth.f

Re: how to check manytomany field in filter?

2009-02-02 Thread Martin Conte Mac Donell
On Tue, Feb 3, 2009 at 12:21 AM, garagefan wrote: > > Trying to test a manytomany field in a model that will be user names. > Building that is simple enough in the model, and so is selecting the > users in the admin. > > the problem is filtering a query to test the current logged in user > with t

Re: Making fields conditionally required based on another field's state

2009-02-02 Thread Martin Conte Mac Donell
On Mon, Feb 2, 2009 at 7:21 PM, wotaskd wrote: > > Hello everyone, a quick (and I guess easy) one: > > Is there any way, on the admin site, to make a field for a model > mandatory, if another one is blank and vice-versa? Yeap, you need to write your own form class, subclass clean() method do you

Re: [slightly offtopic] Which Python are people using on OSX?

2009-02-05 Thread Martin Conte Mac Donell
On Thu, Feb 5, 2009 at 7:07 PM, cjl wrote: > Honestly, I'm leaning towards option number 5. I'm just wondering what > other Django folks are using. I'm using MacPorts. It's the practical way. (x11? really?. Which version are you trying?) I'm using those ports: # port installed | grep py py25

Re: Using forloop.counter0 on a variable

2007-12-17 Thread Martin Conte Mac Donell
You can do that with a very simple template tag register = template.Library() @register.simple_tag def get_element(list, index): # You should catch IndexError here. return list[index] Template side: {% get_element secondprice forloop.counter0 %} Regards, Martin Conte Mac Donell

Re: Problem trying to configure Django with FastCGI and Lighttpd

2007-12-17 Thread Martin Conte Mac Donell
Which version of django are you using? What do you see on lighttpd logs? Is port 3303 open with fcgi process? Regards, Martin Conte Mac Donell On Dec 17, 2007 4:23 PM, Chris Moffitt <[EMAIL PROTECTED]> wrote: > Take a look in the lighttpd server logs to see if there are any errors >

Re: Using forloop.counter0 on a variable

2007-12-17 Thread Martin Conte Mac Donell
What about $ {% filter floatformat:2 %} {% get_element secondprice forloop.counter0 %} {% endfilter %} Regards, -- Martín Conte Mac Donell On Dec 17, 2007 6:53 PM, Greg <[EMAIL PROTECTED]> wrote: > > Martin, > Yep...that worked. Thanks! > > However,

Migration running in shell, but no change in DB

2023-03-31 Thread &#x27;Martin Heitmann' via Django users
altered models.py in another app and the result is the same. Do you have any advice how to narrow this down? Best regards Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: Migration running in shell, but no change in DB

2023-04-01 Thread &#x27;Martin Heitmann' via Django users
The migrations do not show up in the django_mirations table. The problem must occur earlier. On Saturday, April 1, 2023 at 8:42:20 AM UTC+2 David Nugent wrote: > I would check in the django_migrations table to ensure that the migration > has successfully been run. > > >

Re: Migration running in shell, but no change in DB

2023-04-01 Thread &#x27;Martin Heitmann' via Django users
:00 PM UTC+2 Jason wrote: > part of getting effective help is sharing how you're doing things and the > code. for example, sharing the migration generated would be helpful. you > do have the context of how and what is being executed, we don't, so sharing > that with yo

Re: Migration running in shell, but no change in DB

2023-04-01 Thread &#x27;Martin Heitmann' via Django users
Dear Muhammad Thanks, but I did that several times. And I also check the INSTALLED_APPS. It is listed there, as it was before. :/ Best regards Martin On Saturday, April 1, 2023 at 2:48:05 PM UTC+2 Muhammad Juwaini Abdul Rahman wrote: > Try running: > ``` > ./manage.py makem

Re: Migration running in shell, but no change in DB

2023-04-01 Thread &#x27;Martin Heitmann' via Django users
eld w_bezahlt on waeschepaket -- And for whatever reason it includes only the table creation and not the change in the other field. On Saturday, April 1, 2023 at 7:46:51 PM UTC+2 Martin Heitmann wrote: > Dear Jason > > I went two migration steps back, then again I did makemigrations and then

Re: Migration running in shell, but no change in DB

2023-04-02 Thread &#x27;Martin Heitmann' via Django users
A little PS: I logged in via phpmyadmin and saw that my user has all privileges. So this should not be the source of the problem. On Saturday, April 1, 2023 at 8:07:57 PM UTC+2 Martin Heitmann wrote: > I have a little update, but not a solution. Adding the database to > sqlmigrate will g

Re: Migration running in shell, but no change in DB

2023-04-05 Thread &#x27;Martin Heitmann' via Django users
The docs > at https://docs.djangoproject.com/en/4.1/topics/db/multi-db/#allow_migrate > state > > > *makemigrations always creates migrations for model changes, but if > allow_migrate() returns False, any migration operations for the model_name > will be silently sk

Re: Migration running in shell, but no change in DB

2023-04-06 Thread &#x27;Martin Heitmann' via Django users
ch db app name"), or raise Exception("db does not match app name"))? Does this belong in the router.py or migration file or another place? Best regards Martin On Wednesday, April 5, 2023 at 9:40:27 PM UTC+2 Jason wrote: > ahhh, no not at all. One db per project, yes. Application

Re: Migration running in shell, but no change in DB

2023-04-06 Thread &#x27;Martin Heitmann' via Django users
> you said you have a router.py file in your project? put it in there. > > On Thursday, April 6, 2023 at 10:50:15 AM UTC-4 Martin Heitmann wrote: > >> Dear Jason >> >> db per project/app: Okay, I will keep that in mind for the future. I just >> thought that i

Re: Migration running in shell, but no change in DB

2023-04-06 Thread &#x27;Martin Heitmann' via Django users
So, I put this at the start of my router.py: import logging logger = logging.getLogger(__name__) I have never used that, but I hope it is right. Then below at the app's router and the allow_migrate def I did this: def allow_migrate(self, db, app_label, model_name=None, **hints): if ap

<    1   2   3   4   5   6