Hello,
I am using django admin for my project so I am not writing much templates
by myself, therefore I am not very skilled with them, so excuse me if I ask
dumb question.
I have extended base_site.html to add browser refresh in block extrahead.
I do not want however to do refresh while I am inse
If the refresh is the only thing in your "extrahead" block, then just
don't add block.super to extrahead in your change form, and you can
eliminate the "if" statement from it in your base template.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
Thanks,
yes, this is what I did.
I just wanted to know if there is a better way.
In the case I add something more to base_site extrahead I would be in
trouble.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and
Hi Nenad,
you can wrap your meta-refresh line in another block and then delete
it's content in templates which shouldn't be refreshed.
# base_site.html
{% block extrahead %}
{% block extrahead-refresh %}
{% endblock %}
{% endblock %}
# change_form.html -- deletes content of block
Many thanks
I new it should exist better way.
Nenad
--
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...@googlegroups.com.
To post to this gr
I understand but I cannot locate the FastCGI process to stop it. When I type
"locate *.fcgi" I get no results at all so unfortunatelly I don't know how to
stop the Django (or fastCGI) process itself.
Can anyone help me, please?
--
You received this message because you are subscribed to the Goo
Hi Serge,
The following works and is almost the same as your code:
url_list = []
for i in range(0, 4):
url_list.append(url(r'^%d$' % i, 'view%d' % i))
urlpatterns = patterns('', *url_list)
As patterns is a function that expects multiple arguments each of which
(other than the first) is a
I'll try to answer your second question:
On Saturday, 9 March 2013 16:07:46 UTC+11, jayhalleaux wrote:
>
>
>
> 2. Accessing user profile data from a session.
>
> Example:
>
> models.py
>
> from django.contrib.auth.models import User
>
> class UserProfile(models.Model):
>
> user = mo
On Saturday, 9 March 2013 04:56:52 UTC+11, frocco wrote:
>
> Hello,
>
> right now, if I create a user in admin, I have to also create their
> userprofile that I have defined in settings.
>
> Is there a way to automate this?
>
> Thanks
>
>
>
Hi,
If by automate you mean admin should allow you to
On Fri, Mar 8, 2013 at 6:14 PM, Asier Hernández Juanes
wrote:
> When I type "locate *.fcgi" I get no results at all
that searches for files. no relation to processes.
to help you, first we need to know a bit about your deployment
architecture, specially which WSGI server you're using behind ng
The problem is that I am administrating this server where the Django
application was already installed and deployed so I don't have this
information.
However I have execute "ps -e" to view all the processes running on my
server and I got this:
PID TTY TIME CMD
1 ?00:00:2
Oh, how could I miss that. Now I see it. Thanks :)
To submit multiple values for a given key – for example, to specify the
> selections for a – provide the values as a list or
> tuple for the required key. For example, this value of data would submit
> three selected values for the field named
I have launched a "/etc/init.d/uwsgi restart" but the application is still
not loading the changes in urls.py file.
I think I have to kill the process because after restarting the uwsgi
process the PID is still the same:
*root@miami ~ # ps -fea|grep uwsgi
uwsgi11916 1 0 Jan22 ?
Hello,
I have little problem with testing Django sources in Windows.
I have fresh sources from "git clone". I used Git shell (sh.exe) from "Git
Bash".
When:
*PYTHONPATH=.. /python.exe runtests.py
--settings=test_sqlite*
I receive these errors:
===
Hello,
I have problem with testing Django sources from Git.
When I use:
*
PYTHONPATH=.. /python runtests.py --settings=test_sqlite*(in
Windows with Git Shell).
I receive these errors:
==
FAIL: test_naturalday_uses_localtime
(
thanks... i totally blanked as to where i was making the mistake.
On Saturday, March 9, 2013 3:39:06 AM UTC-5, Atul Bhouraskar wrote:
>
>
> I'll try to answer your second question:
>
> On Saturday, 9 March 2013 16:07:46 UTC+11, jayhalleaux wrote:
>>
>>
>>
>
>
>> 2. Accessing user profile data
I setup a brand new 1.5 project today. I had everything working fine. Was
using django's built in admin to test/refine and add data to my models.
Then I installed django-registration using the repo below, and grabbed the
templates. The good news is that, yes, the registration stuff works and
I plan to work on it at the PyCon sprints. Rejected some pull requests
lately though due to people abusing various features of bitbucket to
spam rather than to help, and my policy is not to reward that kind of
behavior.
--
You received this message because you are subscribed to the Google Groups
Hi,
Was wondering if there are *paid* takers for themes for the django-admin
interface. I know there are a few that exist already but am not quite happy
with them.
I can definitely spend a few days/weeks and develop some nice looking ones,
but wanted to check if people are really looking for some
19 matches
Mail list logo