Yep that. The $ sign indicates "this is the end of the url".
(actually, it's a generic regex that means "this is the end of the
search string" in the same way that ^ indicates "this is the start of
the search string".)
Cheers
L.
On 3 October 2014 12:50, Collin Anderson wrote:
> (r'^rango/$', i
(r'^rango/$', include('rango.urls')),
remove the dollar sign.
(r'^rango/', include('rango.urls')),
--
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
my tango/urls.py
from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'tango.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
What's in your tango urls.py?
Cheers
L.
On 3 October 2014 08:32, ashley kenney wrote:
> hello sweets!!!
>
> I'm trying to display about page under rango app in my tango project. I'm
> getting error below when I go to http://127.0.0.1:8000/rango/about. Not
> sure what is wrong with (r'^abou
On 3/10/2014 12:31 AM, Carlos A. Carnero Delgado wrote:
Hi,
I have succesfully upgraded an application to 1.7, and the time has come
to apply a migration. In my development environment this is, as
expected, a non issue; however, this particular application is hosted in
a server where I'm not all
I kept looking and I found one that works nice, I'll share it here if maybe
someone is needs something similar
http://gregbrown.co.nz/code/django-simple-search/
2014-10-02 16:38 GMT-05:00 Jorge Andrés Vergara Ebratt
:
> Hello guys,
>
> I'm currently trying to add search functionality to an app,
hello sweets!!!
I'm trying to display about page under rango app in my tango project. I'm
getting error below when I go to http://127.0.0.1:8000/rango/about. Not
sure what is wrong with (r'^about/', 'rango.views.about'),,. help.
Not Found
The requested URL /rango/about was not found on thi
hello sweets!!!
I'm trying to display about page under rango app in my tango project. I'm
getting error below when I go to http://127.0.0.1:8000/rango/about. Not
sure what is wrong with (r'^/rango/about', 'rango.views.about'),. help.
Not Found
The requested URL /rango/about was not found
Hello guys,
I'm currently trying to add search functionality to an app, I'm looking for
something that works just like the admin's search_fields, but all of the
apps I've found seem to be an overkill for what I need.
There is something made for list_filter (
https://github.com/alex/django-filter)
Collin,
Thank you for the suggestion. I will try it tonight after I get off work
and can finish cleaning up the code following Daniel's answer. sectionView
is supposed to be id/slug, but I included the Article name in the Section
names, because I can't put a fk in the slug. So maybe that was al
Daniel,
Thank you. Yes, your code works. If I had posted a week ago, I would not
have lost a week on my life expectancy. Obviously, I'm just not 'getting
it'. If you have any suggestions, or resources, to help me understand
better going forward, I'd be grateful, but you've done plenty already. T
I'm doing python manage.py test, but always receive one of the following
ImportError messages.
ImportError: No module named 'expressions_regress'ImportError: No module named
'aggregation'ImportError: No module named 'migrations'
I have ensured my virtual environment is enabled. I'm on Django
I'm trying to create fixtures for my Django application. We have our own
app that provides per-object permissions. It uses a GenericForeignKey to
assign permissions to many different models. I need the ability to define
fixtures for these custom permissions. However, I'm having trouble
understa
I will read this thanks. Does it cover this issue?
django.core.exceptions.AppRegistryNotReady: The translation infrastructure
> cannot be initialized before the apps registry is ready. Check that you
> don't make non-lazy gettext calls at import time.
>
I don't know if this has been a pain to m
Well, as I said, I completely don't understand what is going on here. By my
understanding, which is obviously wrong, I should not have been able to
resolve the problem as I did. But I really would like to understand, so
thank you for helping.
I think it is a matter of vocabulary, and understan
It seems like django-post_office recommends using sentry for the errors.
Getting a better feel for your situation: Why django-post_office at all?
What's wrong with the error emails getting logged?
--
You received this message because you are subscribed to the Google Groups
"Django users" group
>
> Wouldn't it be really cool if you could add an app by pressing a button?
I'd rather use the command line, like "apt-get install package" or "pip
install package". I also like the "git config" command. dotenv looks
promising too. "manage.py install" and "manage.py config" would be cool,
but
Dear Erik, I do not really care about the errors. They are not so hard to
fix but I do not like that they are written into my database by this app:
https://github.com/ui/django-post_office. Well maybe I should rather ask on
github what to do. Thanks so for replying and giving me that idea.
w
Sorry your are so right. I will do that immediately. Thanks a lot.
Am Donnerstag, 2. Oktober 2014 19:00:48 UTC+2 schrieb Tundebabzy:
>
> You should also change your email password immediately because you just
> exposed it to the whole world
> On 2 Oct 2014 15:52, "Erik Cederstrand" > wrote:
>
Assuming "klist" is a typo, your setdefault code _should_ give you
something close to what you want, though not exactly in a table. What
happens when you try?
I simplified your code slightly:
data = {}
for kz in kzlist: # assuming klist was a typo
data.setdefault(kz['date'], {})[kz['key']]
For the ordering issue, I'd recommend setting ordering = ['pk'] in the
Model class Meta, then you don't need to try to handle it in your view.
What does your sectionView look like? Does /{{ id }}/{{ slug }}/ uniquely
identify both an article and a section, or should it be /{{ article_id
}}/{{ a
The django internals and contrib apps never use send_robust(). It must be a
3rd party app that's calling it?
--
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 dja
Interesting. It shouldn't be following it at all unless it's using
select_related, and even then it shouldn't use select_related for this by
default because it's a nullable foreignkey. Or, are you doing some
interesting code in your __init__ method?
I just tried creating a circular reference in
You should also change your email password immediately because you just
exposed it to the whole world
On 2 Oct 2014 15:52, "Erik Cederstrand" wrote:
>
> Den 02/10/2014 kl. 16.37 skrev Sabine Maennel :
>
> > Please help!
> >
> > I want to deploy tomorrow. The problem is that django post office log
You may want to try asking that on the django-oscar mailing
list. https://groups.google.com/d/forum/django-oscar
--
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
I like to handle things the way Heroku does.
1. Use fabric or ansible to define the machine configurations.
2. Use a .env file on remote server, where you can store the setting
values, which can be loaded into django settings.
python-dotenv[1] is a nifty tool that works with fabric to manage your
Isnt convenience vs flexibility the difference between choosing to use a
full CMS and choosing to use a web development framework? Id look for that
in the former, but not the latter - though Im sure .net "programmers" would
disagree ;-)
On Thursday, 2 October 2014 12:23:15 UTC+1, guettli wrote:
Den 02/10/2014 kl. 16.37 skrev Sabine Maennel :
> Please help!
>
> I want to deploy tomorrow. The problem is that django post office logs
> INTERNAL Errors into the the table "postoffice_emails". I do not know why. It
> is about some broken links. I guess I can fix the links, but still I do n
Hi
I have a ORM query that results something like this:
+-+-+---+
| date | key | value |
+-+-+---+
| 201312 | A | 123 |
| 201312 | B | 223 |
| 201312 | C | 133 |
| 201311 | A | 173 |
| 201311 | B | 463 |
| 201311 | C | 463 |
+---
*Please help! *
I want to deploy tomorrow. The problem is that django post office logs
INTERNAL Errors into the the table "postoffice_emails". I do not know why.
It is about some broken links. I guess I can fix the links, but still I do
not want to spam my database with that sort of reporting.
Hi,
I have succesfully upgraded an application to 1.7, and the time has come to
apply a migration. In my development environment this is, as expected, a
non issue; however, this particular application is hosted in a server where
I'm not allowed to run interactive commands. This means that
django-a
Hi Andrew,
Am 2014-10-02 um 05:36 schrieb Andrew Pinkham:
Any feedback appreciated. I hope you find the material helpful.
Also from me a hearty thanks for your article series!
It's very helpful, and very much appreciated!
Best regards,
Carsten
--
Cafu Engine * www.cafu.de
an open-source 3D
Am 02.10.2014 um 14:11 schrieb Tom Evans:
On Thu, Oct 2, 2014 at 12:21 PM, Thomas Güttler wrote:
Am 01.10.2014 um 14:56 schrieb Collin Anderson:
If you're a programmer or sysadmin, configuration should be done in files.
If you're not a programmer or sysadmin, it
should be done in the databa
On Wednesday, 1 October 2014 21:32:14 UTC+1, Malik Rumi wrote:
>
> Executive Summary:
>
> I need to know how to consistently write fbv’s that get the content I want
> out of my database and into my templates for display on my site in the way
> I want it displayed.
>
> I confess, I don’t get it. M
On Wednesday, 1 October 2014 21:35:30 UTC+1, Malik Rumi wrote:
>
> Ok, thank you Daniel. Your response is reasonable and makes sense, but
> that clarity is not on the docs page. But this leads me to a related follow
> up: The need for the parameter, be it 'green' as in my case or '1945' as in
>
Den 01/10/2014 kl. 14.59 skrev Mike Dewhirst :
> On 1/10/2014 10:35 PM, Collin Anderson wrote:
>> I wonder if it's possible to somehow use a custom locale that will
>> always show ISO dates.
>
> I believe some of the Scandinavian countries use ISO natively ...
Except the OP probably doesn't want
On Thu, Oct 2, 2014 at 12:21 PM, Thomas Güttler wrote:
> Am 01.10.2014 um 14:56 schrieb Collin Anderson:
>>
>> If you're a programmer or sysadmin, configuration should be done in files.
>> If you're not a programmer or sysadmin, it
>> should be done in the database.
>
>
> Why do you look the perso
Am 01.10.2014 um 14:56 schrieb Collin Anderson:
If you're a programmer or sysadmin, configuration should be done in files. If
you're not a programmer or sysadmin, it
should be done in the database.
Why do you look the person for a decision like this?
Wouldn't it be better to look at the data
Am 01.10.2014 um 14:44 schrieb Collin Anderson:
I usually use "assets" (class Media) for including cdn hosted libraries.
https://docs.djangoproject.com/en/dev/topics/forms/media/
Example: how can a reusable widget library tell that it needs jquery-ui?
Up to now the only way I see is, that the
Am 01.10.2014 um 14:39 schrieb Collin Anderson:
use send() instead of send_robust().
I am sorry, I don't understand this answer. I subscribe to "post_init". I don't
send the
signal, I receive it.
Is there a way to tell django to use send() for signals?
.
I found this solution:
{{{
f
Sweden does
2014-10-01 16:59 GMT+04:00 Mike Dewhirst :
> On 1/10/2014 10:35 PM, Collin Anderson wrote:
>
>> I wonder if it's possible to somehow use a custom locale that will
>> always show ISO dates.
>>
>
> I believe some of the Scandinavian countries use ISO natively ...
>
>
>
>> --
>> You rece
41 matches
Mail list logo