Hi JJ,
You're absolutely right that there is a better way to do this that doesn't
involve repetition. To start with, check out the docs under example on the
page for the URL dispatcher:
https://docs.djangoproject.com/en/dev/topics/http/urls/ - I'll walk you
through part of it though.
First,
Hi Jirka,
That does not seem to be the case. I set rhe proxy server settings to no
proxy and it still prepends a www in front of the IP address. I could
investigate this further but I am little pressed for time at present.
Thanks,
nav
On Tuesday 28 August 2012 10:39 AM,
Hi nav,
A long shot - do you happen to have a proxy defined in your browser? It is
possible to define a proxy for *all* request (including localhost) - this would
have the same effect.
HTH
Jirka
-Original Message-
From: nav
Sender:
Found a workaround that works.
I assigned 127.0.0.1 in my /etc/hosts file to www.127.0.0.1 and everything
works. From the research I have done I cannot prove conclusively if this is
a problem on Ubuntu 12.04 machines or not because I could not find other
people who were facing the same issue.
Hello,
I'm trying to develop a simple hyperlink between two pages. It sounds
simple but it's a little bit more complex then that.
Here is the template code that proceeds through the database of
contributors:
Contributors
{% for Contributor in Contributors_List %}
Hi Anton,
Thank you for your email.
I have tried all of the methods you had suggested but to no avail.
In all my years of Django development the localhost address has worked
flawlessly. I have also tried with multiple Django projects and other
Linux installations and the problem persists. This
I hope this helps, when working under windows (XP/7) this just works for me.
Replace with whatever you have named it.
>From the directory above where the project was created create a batch file
(ie .bat) containing the following
set _HOME=%CD%
set DJANGO_SETTINGS_MODULE=.settings
set
Im on the Playing with the API part and seem to catch some troubles.
Everything has gone smoothly until this part.
I write this and get the next error. This is with my enviromen_variable:
DJANGO_SETTINGS_MODULE
set to where I can find the settings.py in my project.
I just created a ticket reporting this issue as a bug:
https://code.djangoproject.com/ticket/18863
Thanks for all the suggestions.
On Tuesday, August 21, 2012 2:27:04 PM UTC-3, Alexis Bellido wrote:
>
> Hello,
>
> I am working on a Django 1.4 project and writing one simple application
> using
Hello,
I've deployed a new website to my staging and production servers but for
some reason the images in the media directory are displaying 404 errors.
The path to the image is correct and the image is located at that path:
ls -la
Hello,
I've deployed a new website to my staging and production servers but for
some reason the images in the media directory are displaying 404 errors.
The path to the image is correct and the image is located at that path:
ls -la
On 27-8-2012 18:31, Axel Rau wrote:
> Another question: How can I expand the right fieldset dependent of
> current content of my choices field (as loaded from db) while
> rendering the change page initially?
Look in django/contrib/admin/options.py for get_fieldsets(). Also look
at this bugreport
On 27-8-2012 17:05, Bestrafung wrote:
> Ok, I think it's worked out now. I added the export line to the root
> .bash_profile and then changed the shebang in django-admin.py to
> "/opt/python2.5/bin python" and now everything seems to be working.
I imagine there's a typo there and no space, but
Thank you for the help!
On 8/27/12, Jani Tiainen wrote:
> 26.8.2012 21:54, Joseph Mutumi kirjoitti:
>> Hello,
>>
>> If A is a model with ForeignKey relationships to B. What would be the
>> best way of rendering two
>> selectboxes, A and B. The values of B are the values
LFS is another option. Lightning Fast Shop is the promise in the name :-)
www.getlfs.com
Disclaimer: I'm not affiliate with LFS; we've used it for a project
(www.qmaterial.com.br) that is not a ecommerce, but has a significant
number of similar features (except ecommerce) that using a
Am 27.08.2012 um 17:22 schrieb Dennis Lee Bieber:
> If Javascript (and by extension, AJAX) is not a viable option, it
> would seem that you will be stuck with having the first choice made
> trigger a form submittal so that the server can then populate the second
> part and send it back to
Ok, I think it's worked out now. I added the export line to the root
.bash_profile and then changed the shebang in django-admin.py to
"/opt/python2.5/bin python" and now everything seems to be working. If
anyone is working on an older Red Hat/CentOS system and has to follow the
guide I'm
On Mon, Aug 27, 2012 at 10:51 AM, Axel Rau wrote:
>
> Am 27.08.2012 um 15:04 schrieb Nicolas Emiliani:
>
> >
> > Through JS, you need to implement a script that binds to the change event
> > and then changes the collapse css call for the specific div. You may want
> > to look
I ran python and checked the version number. This is what I get:
[-bash-3.2 root@server1: ~] # python
Python 2.5 (r25:51908, Aug 20 2012, 11:55:47)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
When I run "import
Am 27.08.2012 um 15:04 schrieb Nicolas Emiliani:
>
> Through JS, you need to implement a script that binds to the change event
> and then changes the collapse css call for the specific div. You may want
> to look
> at jQuery, although this is out of scope of the list.
>
> Once you have your
Thank you all for the tips. I was pretty sure I tried using the full path
to the 2.5 install with the same error but I'll check again. I'll let you
know what I find.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on
Hi, I'm new in django and I'm searching how to the following...
I've the following models
class Fighter(Person):
pass
class Fight_Event(models.Model):
pass
# INLINE MODEL
class Fight(models.Model):
event = models.ForeignKey(Fight_Event)
fighter1 =
On Mon, Aug 27, 2012 at 6:36 AM, Axel Rau wrote:
> To clarify:
> --- from admin.py:
> class MailboxAdmin(admin.ModelAdmin):
> list_display = ('localpart', 'localdomainfk', 'type',
> 'aliastargetaddresses', 'created', 'updated')
> fieldsets = (
>
On Mon, Aug 27, 2012 at 3:34 AM, Vikas Rawal <
vikasli...@agrarianresearch.org> wrote:
> > >There is a field in my model called "name". What do I give in the css
> > >file to reduce its width to say 100px?
> >
> > This is css rather than Django but this is what I did to make my
> > input field
On Mon, Aug 27, 2012 at 3:54 AM, Melvyn Sopacua wrote:
> On 27-8-2012 1:21, Nicolas Emiliani wrote:
>
> > The thing is that the GridWidget.__init__ method does not get executed
> > each time I access the form that contains it, so if the queryset changes
> the
> > widget
oh, i misunderstood your question.
try to type url with schema into browser's address bar. i mean, use '
http://localhost:8000/' instead of 'localhost:8000'.
also it's possible that some browser extension does this, try disabling
them all.
On Mon, Aug 27, 2012 at 10:53 AM, nav
try running dev server with command like "./manage.py runserver 0.0.0.0:8000"
- 0.0.0.0 means that socket will listen for connections on all interfaces.
other people in your network will be able to connect your box using your ip.
if this does not help - show us output of 'sudo iptables-save' and
Fantastic solution, thank you so much. I will be sure to loose those
phrases from my vocab as well :)
On Monday, August 27, 2012 3:18:52 AM UTC-4, Melvyn Sopacua wrote:
>
> On 27-8-2012 4:14, Matthew Meyer wrote:
>
> > So the question: Is there a way I can keep the flexible tag regex
>
27.8.2012 12:11, jm kirjoitti:
hi
do you solved it ? I'm looking for the same and do not find anything to
change which column is used in the SELECT instead of __unicode__
thanks
jm
Le mercredi 20 juillet 2011 00:16:06 UTC+2, galgal a écrit :
I use ModelForm. One of fields is:
hi
do you solved it ? I'm looking for the same and do not find anything to
change which column is used in the SELECT instead of __unicode__
thanks
jm
Le mercredi 20 juillet 2011 00:16:06 UTC+2, galgal a écrit :
>
> I use ModelForm. One of fields is:
>
> repertoire =
Well there's Django-Shop
On Mon, Aug 27, 2012 at 8:38 PM, Swaroop Shankar V wrote:
> Hi Alec,
> Cartridge is the one you mean I guess, but after going through the document
> it seems i will require to install Mezzanine too. I was looking for an app
> which i can use with my
Hi Alec,
Cartridge is the one you mean I guess, but after going through the document
it seems i will require to install Mezzanine too. I was looking for an app
which i can use with my existing project and also with some good
documentation.
Thanks and Regards,
Swaroop Shankar V
On Mon, Aug 27,
To clarify:
--- from admin.py:
class MailboxAdmin(admin.ModelAdmin):
list_display = ('localpart', 'localdomainfk', 'type',
'aliastargetaddresses', 'created', 'updated')
fieldsets = (
(None, {
'fields': (('localpart', 'localdomainfk'),
On 27/08/2012 4:34pm, Vikas Rawal wrote:
There is a field in my model called "name". What do I give in the css
file to reduce its width to say 100px?
This is css rather than Django but this is what I did to make my
input field wider ...
.wider .vTextField {
width: 60em !important;
}
If
Dear Folks,
I am running my django development server on 127.0.0.1:8000 and accessing
this address from my web browser on the same machine. In the past few days
I have found thet the web browsers keep prepending the address with "www."
when using the above address. 127.0.0.1 without the prot
On 27-8-2012 4:14, Matthew Meyer wrote:
> So the question: Is there a way I can keep the flexible tag regex redirect
> behavior but then "break" from it once I reach a product page? One
> important thing to note is that I want to keep the product page within the
> built up url scheme like:
On 27-8-2012 1:21, Nicolas Emiliani wrote:
> The thing is that the GridWidget.__init__ method does not get executed
> each time I access the form that contains it, so if the queryset changes the
> widget gets 'obsolete'.
That's because the widget is merely the piece that get rendered. It's
> >There is a field in my model called "name". What do I give in the css
> >file to reduce its width to say 100px?
>
> This is css rather than Django but this is what I did to make my
> input field wider ...
>
> .wider .vTextField {
> width: 60em !important;
> }
>
> If you view source in
38 matches
Mail list logo