Hi,
Better not use hard coded url path for static, use {{ STATIC_URL }} in your
link ;
eg :
On Mon, Jul 15, 2013 at 7:28 AM, Sébastien Billion <
sebastien.bill...@gmail.com> wrote:
> Hi,
>
> In your project folder, you can create a folder media zith a subfolder
> css, an other img, js, whate
There's no way, using the django unit tests, to effect something
client side, is there?
For example, in one of my django apps the user can filter the data on
the client side. This is done with javascript. Using the unit tests,
there doesn't seem to be a way I emulate that for testing. How do
folks
Hi there,
first, there's a difference between MEDIA files and STATIC files (since
1.3, I think). Media files are files uploaded by users, while static
files are usually persistent files on the server from the beginning,
eg. stylesheets, images, javascripts, robots.txt, etc.
It's good to keep these
Check out functional testing with selenium.
Sent from my iPhone
On Jul 15, 2013, at 4:00 AM, Larry Martell wrote:
> There's no way, using the django unit tests, to effect something
> client side, is there?
>
> For example, in one of my django apps the user can filter the data on
> the client s
Complementing Jonathan's response: you can use django's
LiveServerTestCase[1] instead of the usual TestCase. To access your site as
a browser would do there is selenium [2].
Att,
[1]
https://docs.djangoproject.com/en/dev/topics/testing/overview/#django.test.LiveServerTestCase
[2] http://selenium-
Hi john ,
I searched for what you told me, but I could not find any . Could you
provide a link for that .
Thanks
On Saturday, July 13, 2013 10:14:34 AM UTC-4, John wrote:
>
> On 12/07/13 22:12, sahitya pavurala wrote:
> > however if i directly return the value i get the image .But i need to
I am having trouble updating an existing table using django on ms sql
server. Here is the query I am using:
>>> c = Candidacy.objects.get(id_num=610020956, stage__in=('150 ', '350
'))
>>> c.enroll_dep_amt = 146
>>> c.save()
But the SQL query sent to the server does not look as it should. Inst
forms.py
PERSON_ACTIONS = (
('1', '01.Allowed to rest and returned to class'),
('2', '02.Contacted parents /guardians'),
('3', '02a.- Unable to Contact'),
('4', '02b.Unavailable - left message'),)
class PersonActionsForm(forms.ModelForm):
action = forms.MultipleChoiceField(widge
Any current faves for client-side testing that do not require Java?
>
>
--
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.
alguna recomendacion para mi " lio de Templates" con respecto a lo otro, yo
ya utilice el syncdb y me creo las tablas de usuarios sin problema, pero a
la hora de utilizar change_password_form es el lio yo utilizo la del login
sin problema alguno, incluso la de aditar usuario, pero las demas no h
On Mon, Jul 15, 2013 at 6:10 AM, Luiz A. Menezes Filho
wrote:
> Complementing Jonathan's response: you can use django's
> LiveServerTestCase[1] instead of the usual TestCase. To access your site as
> a browser would do there is selenium [2].
>
> Att,
>
> [1]
> https://docs.djangoproject.com/en/dev
Also, here is a detailed (and recent) intro on integrating
LiveServerTestCase into your Django project:
http://lincolnloop.com/blog/2012/nov/2/introduction-django-selenium-testing/
On Mon, Jul 15, 2013 at 8:43 AM, Larry Martell wrote:
> On Mon, Jul 15, 2013 at 6:10 AM, Luiz A. Menezes Filho
> w
I am not sure what you mean by taking you to post view of the function.
That aside, you need to include csrfmiddlewaretoken: '{{ csrf_token
}}' in your data: section.
data: {
'keyword': search_for,
'filter': rval,
csrfmiddlewaretok
Hi all,
we have two queries/QuerySets Q_a and Q_b, each of which use INNER joins
in the generated SQL when evaluated individually.
When I use a Q object to "OR" these two QuerySets, the INNER joins turn
into LEFT OUTER joins -- which in turn cause a huge performance drop
(several hundred tim
The issue turns on to be a bug in Python regarding sub-interpreters:
http://stackoverflow.com/questions/8309465/popen-does-not-work-anymore-with-apache-wsgi-and-python-2-7-2
Adding this to my http conf fixed it:
WSGIApplicationGroup %{GLOBAL}
On Thursday, June 20, 2013 4:51:10 PM UTC-7, ovnicr
I am trying to create a hierarchical form with nodes in django-treebeard.
I am using code from the docs, but it doesn't reset when I have another
root node, it should be on the left side if it has a depth of 1.
Also how would you make it expand when I click Products to expand products.
I organi
I don't care if the page reloads, how do I change the form?
On Sat, Jul 13, 2013 at 1:19 AM, Babatunde Akinyanmi
wrote:
> I'm assuming you want the form to morph on the screen without a page
> reload. If that's the case, you need JavaScript like jQuery. let the view
> you are submitting your POS
Fijate aca
https://docs.djangoproject.com/en/1.5/topics/auth/default/#module-django.contrib.auth.viewsque
tenes herramientas para usar en las vistas para cambiar las passwords,
etc... entiendo que pretendés darle un aspecto personalizado al formulario
de cambiar claves, login, etc... yo crearía mis
Hello All,
New to Django but excited about the utilities I see. Having a bit of
trouble getting the initial set-up to work using enthought. When I run
startproject it seems to just immediately open up enthought with several
blank files. I don't have extensive experience with web-stacks but I
Hello All,
I'm running django for the first time using the enthought canopy IDE for
python. I'm trying to work through the tutorial and although the cmd line
tells me I have successfully installed django 1.5.1 . But when I try running
django-admin.py
startproject [sitename] it just opens up
Render a different form
or
Render the body tag with a different class or classes that hide some parts
of your grander form and reveal others
or
Render a script tag setting a value in a variable that your JavaScript uses
to decide how to make the form look.
If you want to control how your
Hey everyone,
So I figured out what was going on in my code - apparently, when adding
items to a ToManyField through the API, this requires a specific format,
namely:
["api/v1/exampleResource/1/","api/v1/exampleResource/2/","api/v1/exampleResource/3/"]
Note the lack of any spacing, the qu
Okay, I'm pretty new to django (and coding in general), so please bear with
me. I'm trying to create the most basic features of a forum, and I had a
few questions about how to go about doing this. So far, I've set up a
post-only (i.e., no way to comment) project that consists of a single app
How to set up django on Apache
I'm using django 1.4
and apache 2.4
and Python 2.7
My configuration is well
in httpd.conf
WSGIScriptAlias / C :/ xampp / htdocs / My_blog / My_blog / wsgi.py
WSGIPythonPath / C :/ xampp / htdocs / My_blog /
Order deny, allow
Allow from all
Does anyone know wh
Hi ben you are try with this app http://disqus.com/ or you can use comment
contrib app read this tutorial http://lightbird.net/dbe/blog.html#comments
Cheers
On Mon, Jul 15, 2013 at 2:52 PM, Ben Spatafora wrote:
> Okay, I'm pretty new to django (and coding in general), so please bear
> with me.
where is the error ??
On Mon, Jul 15, 2013 at 5:11 PM, maiquel wrote:
> How to set up django on Apache
>
> I'm using django 1.4
> and apache 2.4
> and Python 2.7
> My configuration is well
>
> in httpd.conf
>
> WSGIScriptAlias / C :/ xampp / htdocs / My_blog / My_blog / wsgi.py
> WSGIPythonPath
Hi,can i get any answer or let me know the way to do this.
Thanks
On Monday, July 15, 2013 7:46:43 PM UTC+5:30, Sivaram R wrote:
>
> forms.py
>
> PERSON_ACTIONS = (
> ('1', '01.Allowed to rest and returned to class'),
> ('2', '02.Contacted parents /guardians'),
> ('3', '02a.- Unable t
27 matches
Mail list logo