Re: Django Project/App Folder Hierarchy Ambiguity

2013-07-12 Thread Ramiro Morales
he version of Django you are using. Regards, -- Ramiro Morales @ramiromorales -- 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+unsubsc

Re: Django Project/App Folder Hierarchy Ambiguity

2013-07-12 Thread Ramiro Morales
oject Other places: starproject command documentation: https://docs.djangoproject.com/en/1.5/ref/django-admin/#startproject-projectname-destination Django 1.4 release notes: https://docs.djangoproject.com/en/1.5/releases/1.4/#updated-default-project-layout-and-manage-py -- Ramiro Mora

Re: label_tag() escapes output twice

2013-07-19 Thread Ramiro Morales
ge that isn't backported to a stable branch like 1.5.x Thanks. -- Ramiro Morales @ramiromorales -- 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 ema

Re: Exception Value: Could not parse the remainder: '().order_by('-votes')' from 'poll.altword_set.all().order_by('-votes')'

2013-08-07 Thread Ramiro Morales
late language only supports calling methods without arguments, and in that case the () aren't needed. Please read this section of the documentation fully for more details: https://docs.djangoproject.com/en/1.5/topics/templates/#accessing-method-calls You will need to implement the or

Re: Model verbose name appears to split up on capitalisation (e.g. "iOS") - any way to suppress this?

2013-08-14 Thread Ramiro Morales
These textual representations should be obeying what you specified with the verbose_name* options. Are you actually using "meta"? It should be Meta with a capital M. Can you try that and tell us if that solves things for you? -- Ramiro Morales @ramiromorales -- You received this message b

Re: [] error

2013-08-26 Thread Ramiro Morales
'python models.py' but with contents that seem to be a PNG file. And I can't open it (the image viewer reports it is corrupt). Also, make sur you report the versions of Django and Python you are using. -- Ramiro Morales @ramiromorales -- You received this message because you are subs

Re: So this needs to be fixed

2013-09-06 Thread Ramiro Morales
tch to get things moving. Thanks again. -- Ramiro Morales @ramiromorales -- 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...@googl

Re: Query parameters for receiving post

2013-10-08 Thread Ramiro Morales
the hypotheses ... the problem is that I can have up to 10 > parameters passed by post to the filters , and I never know which are passed > , can be 1 , 2, 4, ... as the user makes the filter ... > > But doing so would take a lot of ifs , it would have many chances ... > is there an

Re: Extension to QuerySet.values()

2013-10-10 Thread Ramiro Morales
On Oct 10, 2013 10:02 AM, "Arnaud Delobelle" wrote: > > Hi Russ, > > Thanks for the feedback. I agree that this could possibly be integrated into the values() method. I just used a new method in order to minimise interference with our existing code. I'll read the 'contributing' document then se

Re: Django 1.6b4 fails to run tests with runner test.simple trying to import TransRealMixin

2013-10-22 Thread Ramiro Morales
; File > "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/utils/importlib.py", > line 35, in import_module > __import__(name) > File > "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/contrib/humanize/tests.py", > line 22, in > f

Re: Django 1.6b4 fails to run tests with runner test.simple trying to import TransRealMixin

2013-10-22 Thread Ramiro Morales
On Tue, Oct 22, 2013 at 4:33 PM, Ramiro Morales wrote: > > Could you give us more information about how to reproduce this? i.e. what > tests are you trying to run? etc. Never mind, I've reproduced it and opened ticket [1]12307. -- Ramiro Morales @ramiromor

Re: Django 1.6b4 fails to run tests with runner test.simple trying to import TransRealMixin

2013-10-22 Thread Ramiro Morales
On Tue, Oct 22, 2013 at 8:26 PM, Ramiro Morales wrote: > On Tue, Oct 22, 2013 at 4:33 PM, Ramiro Morales wrote: >> >> Could you give us more information about how to reproduce this? i.e. what >> tests are you trying to run? etc. > > Never mind, I've reproduc

Re: difference in datetime aggregation when using sqlite3 instead of mysql

2013-10-26 Thread Ramiro Morales
sqlite3 aggregated datatime type: Hopefully this is something you can actually use in your real project. See https://docs.djangoproject.com/en/1.5/topics/db/aggregation/#following-relationships-backwards Regards, -- Ramiro Morales @ramiromorales -- You received this message because y

Re: Startproject failing on Django 1.6

2013-11-13 Thread Ramiro Morales
e clear in some recent changes to the Django docs but I'm seeing now we missed it some places. HTH -- Ramiro Morales @ramiromorales -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Why Django Model Filter Returns Model Object Instance Instead of QuerySet?

2011-04-21 Thread Ramiro Morales
ut haven't correctly described your initial problem. This doesn't make it easy to try to help you. Also, neither .count() nor .filter() raise ObjectDoesNotExist so that try/catch block isn´t necessary. .filter() returns and empty queryset if no model instance matches its criteria. M

Re: How to register EmployeeAdmin using atributes in Person class

2011-04-22 Thread Ramiro Morales
the 1to1 relationship between Employee and Person. Also, see http://docs.djangoproject.com/en/dev/ref/models/fields/#onetoonefield http://docs.djangoproject.com/en/dev/topics/db/models/#multi-table-inheritance http://docs.djangoproject.com/en/dev/topics/db/models/#specifying-the-parent-link-field

Re: Multiple databases - unmanaged models - get_absolute_url()

2011-04-29 Thread Ramiro Morales
for the proposed fix is welcome. -- Ramiro Morales 1. http://code.djangoproject.com/ticket/15610 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this

Re: Tutorial: "Customize the admin look and feel"

2011-05-11 Thread Ramiro Morales
dmin/base_site.html` from within the default Django admin template directory in the source code of Django itself into an `admin` subdirectory of whichever directory you're using in TEMPLATE_DIRS. -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups

Re: REMOTE_USER authentication to 'Admin'?

2011-05-19 Thread Ramiro Morales
your custom backend in AUTHENTICATION_BACKENDS is a valid one considering the python module search path available under you Apache setup Change the strategy you use to really subclass from django.contrib.auth.backends.ModelBackend, etc. Regards, -- Ramiro Morales -- You received this mess

Re: TransactionTestCase and Fixture Teardown

2011-07-11 Thread Ramiro Morales
n't say this is by design or a result of gradual evolution of our test support code. That's why I'm leaving this note here just in case we want to revisit this at some point (although I suspect adding a flush at the end of every test case for MySQL+MyISAM TransactionTestCase will make

Re: delivering streaming videos

2010-12-26 Thread Ramiro Morales
erver to rely on streaming out the video, and you said no :S >> >> Fail. > > no dude, you told me to use nginx for my task which doesn't work as i > explained... fail in understanding > Allf of the mailstream web server i.e. Apache, nginx and lighttpd have similar mech

Re: Cant locate problem with trunk: 'ModelForm' object has no attribute '_meta'

2011-01-02 Thread Ramiro Morales
been unable to point the exact reason and how to solve them. an additional, independent case would be of help. Thanks, -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us..

Re: ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form.

2011-01-02 Thread Ramiro Morales
delAdmin. Also: Are you using dateSent somethwere else in the dmin.py? Remove the admin.pyc file. -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups

Re: Overcoming Django 1.2.4's "no query string in the URL"?

2011-01-12 Thread Ramiro Morales
dea: http://chris.improbable.org/2010/12/23/custom-admin-filters-django-124/ -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe f

Re: Localisation

2011-01-21 Thread Ramiro Morales
ts for the issues you identified. although some of them might have been already reported, you can search them in our Trac installation filtering by Component = Internationalization. Regards, -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups

Re: weird behavior in select_related

2011-01-30 Thread Ramiro Morales
On Sun, Jan 30, 2011 at 7:27 AM, Miguel Araujo wrote: > I didn't know that, that's why it was happening. I didn't post my models, as > I wasn't sure that would help. Btw, it's documented behavior: http://docs.djangoproject.com/en/1.2/ref/models/querysets/#sel

Re: Posible Django Admin BUG

2011-02-02 Thread Ramiro Morales
> Seems to be a DJANGO Admin BUG >> >> > I asked in freenode, django channel and they told me that it should be >> > a bug an I should report it >> >> > Thanks >> >> > Jorge > > -- > You received this message because you are subscribe

Re: Posible Django Admin BUG

2011-02-02 Thread Ramiro Morales
On Wed, Feb 2, 2011 at 1:08 PM, Ramiro Morales wrote: > On Wed, Feb 2, 2011 at 12:59 PM, Jorge Kleinerman (WindBack) > wrote: >> Thanks >> >> I will try to post it there > > I'd suggest to do some homework first: > > Create a clon of your application an

Re: problem with date and decimal changes between 1.1.1 and 1.2.4

2011-02-07 Thread Ramiro Morales
ion (1.2.4 with: I10N=True and LANGUAGE_CODE = 'nl'): > - Dates: 1 maart 2012 > - Decimals are comma separated Regards, -- Ramiro Morales 1. http://code.djangoproject.com/changeset/15405 -- You received this message because you are subscribed to the Google Groups "Django u

Re: pymssql: Problem with Unicode string

2011-02-16 Thread Ramiro Morales
On Wed, Feb 16, 2011 at 8:46 AM, Orgil wrote: > Hello. > I can not get unicode string from MSSQL. > I have pymssql-1.0.2, freetds-0.82, ubuntu-10.10. It seems you have sent this message to the wrong mailing list. -- Ramiro Morales -- You received this message because you are subs

Re: SQL generated for ManyToManyField is incorrect with Django 1.2.1

2011-03-06 Thread Ramiro Morales
gt; > Generated sql: > CREATE TABLE "books_book" ( >    "id" integer NOT NULL PRIMARY KEY, >    "publisher_id" integer NOT NULL, > ) What database engine are you using? What version of Django? -- Ramiro Morales -- You received this message because

Re: cannot change the year in the admin datepicker

2011-03-09 Thread Ramiro Morales
odd years to > notice this. There is already a [1]ticket for this. I've just tried the latest patch, it applies (with some fuzz) and works. Souyou can use that one with the current non-jQuery-based widget. Regards, -- Ramiro Morales 1. http://code.djangoproject.com/ticket/9388 -- You

Re: How does localization work in Django?

2011-03-23 Thread Ramiro Morales
ment >        ImportError: No module named django.core > [/quote] It will be very hard to help you with such a broken paste of the traceback you get. What version of Django are you using? -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups &

Re: Django multiple databases router

2011-03-24 Thread Ramiro Morales
gs by yourself. One possibility would be to create a test suite that covers all your use cases of cross-DB relationships. -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: Re-run only tests that failed last time

2015-03-24 Thread Ramiro Morales
a separate app/module for that? A quick Google search gave me no > usable results. Mine found: https://pypi.python.org/pypi/django-juno-testrunner http://nose.readthedocs.org/en/latest/plugins/testid.html#looping-over-failed-tests plus https://github.com/django-nose/django-nose -- Ramiro Mora

Re: Tutorial missing import: Http404

2015-04-10 Thread Ramiro Morales
f the tutorial then it in fact contains an import of Http404 and it's intrdroduced together with the first piece of code that uses it. It's right in the views.py snippet located under the "Raising a 404 error" section title: https://docs.djangoproject.com/en/1.8/intro/tutorial03/

Re: annotate() questions

2015-04-16 Thread Ramiro Morales
lauses "...When used with an annotate() clause, a filter has the effect of constraining the objects for which an annotation is calculated. For example..." e.g.:: Store.objects.filter(books__pubdate__year=2014).annotate(min_2014_price=Min('books__price'), max_2014_price=Max('

Re: py2neo - how to get a node

2015-06-12 Thread Ramiro Morales
On Jun 12, 2015 7:28 PM, "Shekar Tippur" wrote: > > Hello, > > I am trying to use py2neo (http://py2neo.org/2.0/ext/ogm.html). > I am having trouble looking up a node. Wouldn't this post be more appropriate for the py2neo users mailing list or similar? Just in case, you posted your message to th

Re: Error in shell when following Django tutorial

2014-08-09 Thread Ramiro Morales
Ramiro Morales @ramiromorales On Aug 9, 2014 7:13 PM, "Daniel Grace" wrote: > > I get an error in the shell when following the tutorial > https://docs.djangoproject.com/en/1.6/intro/tutorial01/ > > C:\Users\Daniel\My Documents\Python\DjangoTest\mysite>python manage.py

Re: django-cms apphook urls don't work with reverse() using Python shell

2014-08-19 Thread Ramiro Morales
everse('article_app:article-by-slug', kwargs={'slug': a.slug}) Try with:: reverse('article_app:article-by-slug', args=[a.slug]) > # Reverse for 'article_app:article-by-slug' with arguments '()' and keyword > arguments '{'slug':

Re: TEST_MIRROR not working?

2014-10-26 Thread Ramiro Morales
Actually, in 1.7.x both should work. Ilya: Can you test if using TEST_MIRROR fixes the issue you are seeing? On Oct 26, 2014 9:19 AM, "Tom Evans" wrote: > On Sat, Oct 25, 2014 at 5:21 PM, Ilya Baryshev wrote: > > Hey all! > > > > I was writing tests for queries that use replica database, so I t

Re: translation of view messages and business related messages not working

2014-10-30 Thread Ramiro Morales
On Oct 30, 2014 8:45 PM, "Marcela Campo" wrote: > > Hi, > I am using the translation functionality in Django 1.7 successfully for plain strings in a template, so something simple like > > {% trans "Edit Client" %} > > works just fine. > > > I am now trying to translate success_message from views

Re: Translation from templates doesn't work.

2013-11-24 Thread Ramiro Morales
ext utility? Otherwise the translations wont be picked up. -- Ramiro Morales @ramiromorales -- 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: Exception on start django server in windows 7

2014-01-20 Thread Ramiro Morales
wat to widen the size of your terminal to to not get these ugly line wraps. -- Ramiro Morales @ramiromorales -- 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 e

Re: I nedd help - first Django app, part 2 - Admin - Adding related objects

2014-01-27 Thread Ramiro Morales
e is my code. > [snip] > class PollAdmin(admin.ModelAdmin): > ... > inline = [ChoiceInline] The correct option name here is 'inlines': inlines = [ChoiceInline] -- Ramiro Morales @ramiromorales -- You received this message because you are subscribed to the

Re: Incorrect SQL

2014-03-22 Thread Ramiro Morales
rigin of the python-MySQLdb driver you are using? AFAIK there isn't a 1.2.3 version compatible with Python 3.x. See https://docs.djangoproject.com/en/1.6/ref/databases/#python-3 -- Ramiro Morales @ramiromorales -- You received this message because you are subscribed to the Google Groups

Re: syntax usage for the Database name ??

2014-05-14 Thread Ramiro Morales
x27;PASSWORD': '123', }, 'other': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '', 'NAME': 'other', 'USER': 'ramiro', 'PASSWORD'

Re: django ugettext translation glitch or as designed?

2014-05-30 Thread Ramiro Morales
guage > selected but not in example 2. In example 2 your translatable literal is defined and marked-up with the translation function at the global scope of the module. In these cases you need to use lazy translations, i.e. ugettext_lazy() instead of ugettext(). Read the the relevant document

Re: Seems to be a bug in makemessages management command

2014-05-31 Thread Ramiro Morales
plate construct you are using is from Django i18n or from Jinja. Django template tags (including trans) aren't multi-line. There is a ongoing discussion about this. If you use the Django blocktrans template tag, multi-line literals are perfectly suported by templatize(): In [1]: from django

Re: Failing to configure Django correctlly (conflict in settings between models.py and manage.py usage).

2018-01-05 Thread Ramiro Morales
you trying to achieve with things like this: *in models.py I've added:* import os import django os.environ["DJANGO_SETTINGS_MODULE"] = "MY_DJANGO.MY_DJANGO.settings" django.setup() *before the models import from django.db.* or *in settings.py, in INSTALLED_APPS:* INSTALL

Re: django-payslip

2018-01-21 Thread Ramiro Morales
The detailed error page is giving you all the information you need to diagnose the issue. It tells you you have two paths defined in your URL map: /admin/ and /payslip/ as per their respective documentation. So far so good. But you are accessing / with your browser. Hence the 404 error. Try acces

Re: django-admin makemessages --no-obsolete doesn't seem to be working

2018-03-19 Thread Ramiro Morales
you read about that somewhere? Can you post a link? -- Ramiro Morales @ramiromorales -- 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+unsu

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Ramiro Morales
t... instead the verbose_name > > These "problem" occur only when I have M2M field.. in other FK fields > doesn't appears.. > Can you post a simplified excerpt of the relevant (fields, Meta options, __*__ methods) models, admin app ModelAdmin's and *Inline's

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Ramiro Morales
On Tue, Jul 12, 2016 at 1:44 PM, Fellipe Henrique wrote: > > On Tue, Jul 12, 2016 at 1:34 PM, Ramiro Morales wrote: > >> Can you post a simplified excerpt of the relevant (fields, Meta options, >> __*__ methods) models, admin app ModelAdmin's and *Inline's involve

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-13 Thread Ramiro Morales
ze db field names). > That was mi recollection too. But I've been unable to find it. Regards, -- Ramiro Morales @ramiromorales -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving ema

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-13 Thread Ramiro Morales
On Tue, Jul 12, 2016 at 2:42 PM, Fellipe Henrique wrote: > On Tue, Jul 12, 2016 at 1:52 PM, Ramiro Morales wrote: > >> Where the 'Conjunto de dados' seen in the screenshot title comes from? Is >> the code you posted actually in sync with it? > > > Sorry abo

Re: Autoreloader looping Django 2.2

2019-04-29 Thread Ramiro Morales
>> dont think it works with shared virtualbox folders. >> >> >> Is there anyway I can get this working with 2.2 can I use the old >> reloader or do I need to revert to 2.1? >> > > Can you try the stable/2.2.x git branch? it contains a couple of post-2.1 fixes

Re: Bugs: cannot start runserver since Django 2.2.2

2019-06-05 Thread Ramiro Morales
t): > File > "/home/docker/.local/share/virtualenvs/dropper-TxELQAPU/lib/python3.7/site-packages/IPython/core/history.py" > , line 780, in writeout_cache > self._writeout_input_cache(conn) > File > "/home/docker/.local/share/virtualenvs/dropper-TxELQAPU/lib/python3.7/

Re: Possible Django bug I am considering raising

2020-06-05 Thread Ramiro Morales
Remember you can not juat open/report an issue and bisect the git commit which could have introduced the change in behavior, but also, if it gets confirmed as a real bug, you can fix it yourself so to not delay yourself in your current project. With the nice side effect that the fix will benefit ma

Re: install gettext tools 0.15

2015-10-30 Thread Ramiro Morales
u can execute msgfmt.exe from any path on your system. That will indicate the directory where it is located has actually and correctly been added to the PATH environment variable. For example, open a Command prompt window and type msfgmt. This is more a general Windows system admin topic. -- Ramiro Mor

Re: install gettext tools 0.15

2015-10-30 Thread Ramiro Morales
s I had info :( >> >> CommandError: Can't find msgfmt. Make sure you have GNU gettext tools 0.15 >> or newer installed. >> >> What can I do more??? I have lost a few days on > -- Ramiro Morales @ramiromorales -- You received this message because you are sub

Re: Problems with dumpdata/loaddata

2016-04-08 Thread Ramiro Morales
It shouldn't. Are you sure you haven't opened and saved the json file with a text editor that might be adding the BOM, e.g. Notepad before running loaddata? On Apr 7, 2016 9:17 PM, wrote: > Opening the JSON file in Notepad++ certainly gives some insight... It says > it's encoded in USC-2 LE BOM.

Re: Handling multiple timezones in Django Admin

2018-10-02 Thread Ramiro Morales
Paul, You seem to have a good grasp of the usability problem you describe and a sound strategy to solve it. You've even researched how modern web browser can help in improving this admin app feature. I'm sure the project would accept a pull request implementing the changes you outline. Or if not,

Re: pip install Django==3.0

2019-12-02 Thread Ramiro Morales
ail.com > <https://groups.google.com/d/msgid/django-users/CABD5YeG8ezgQpM7uHmVGsKMrQnw5OArZTf%3DHYTkar7s4QdHt2Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Ramiro Morales @ramiromorales -- You received this message because you are subscribed to the Google Groups "

<    1   2   3   4