Hello, I'm having issues with Django sessions on Heroku/Redis.
I expect to be able to login and stay logged in. Instead, user will
continually be logged out and sessions do not persist.
I posted more details on Stack Overflow
here:
https://stackoverflow.com/questions/52535488/django-sessions-n
Hello, I'm having trouble configuring Django sessions to be persistent.
I expect a user to be able to log in on first try and then stay logged in.
Currently, it takes multiple tries to login and then the user is logged
out. Sessions are clearly not persisting.
I posted a bounty for this on Stac
regarding speed?
Thanks in advance!
-Jesse
--
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
How does the cookie get set initially? If you just make one login request,
is it the first OPTIONS pre-flight that sets the cookie or is it ok to be
null until you successfully login?
On Sunday, June 15, 2014 3:14:21 PM UTC-4, Andréas Kühne wrote:
>
> Hi Jesse,
>
> I can't rem
#ajax
>
> Renato Oliveira
> @_renatooliveira <http://twitter.com/_renatooliveira>
> Labcodes - www.labcodes.com.br
>
>
>
> On Sun, Jun 15, 2014 at 11:38 AM, Jesse Warden > wrote:
>
>> I've read the stack overflow posts, blog articles on how CSRF works,
I've read the stack overflow posts, blog articles on how CSRF works, etc,
but still failing to get this to work in both JavaScript and Dart. No
matter what I try, I keep getting a 403 for my login method. I've attempted
various Apache/Virtual Host programs for Mac to run a local domain in hopes
I have the same problem with the tutorial. I went through the first part
twice to ensure that I hadn't erred along the way. I did nothing more than
follow the tutorial https://docs.djangoproject.com/en/1.4/intro/tutorial01/
unlike the ticket posted above.
For context:
django-1.4.3
python-2.7.
Thanks! I really appreciate the help guys!
--
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 group, send email to
django-users+unsubscr...@googlegroups.c
Thanks Mike!
I tried djangopackages and didn't find anything. I was wondering if anyone
had a package that they found useful that might be of some help in this
area.
On Tue, Oct 23, 2012 at 9:18 PM, Mike Dewhirst wrote:
> On 24/10/2012 1:08pm, Jesramz wrote:
>
>> Quick question, is there a good
Hello,
I'm new to Django. I'm setting up an existing app for development on
Windows. In the past I've run in to an issue with this application refusing
to run under Django 1.4 on Windows (it's primarily developed under 1.3 on
Ubuntu), but I hacked a 1.4-type manage.py file (manage14.py) and adde
dev version and the version you have
> installed is 1.3.1https://docs.djangoproject.com/en/1.3/intro/tutorial01/
> This would be helpful I guess.
>
> Thanks,
> Anoop
> atm
> ___
> Life is short, Live it hard.
>
> On 21 November 2011 23:28, Jesse Aldridge wrote:
>
&
Looking at https://docs.djangoproject.com/en/dev/intro/tutorial01/
When I run `django-admin.py startproject mysite` I get a flat layout
rather than the nested layout the tutorial says I should see.
There's a note that says,
'The default project layout recently changed. If you're seeing a
"flat
uess... perhaps Firefox does not consider 127.0.0.1
and localhost to be the same for the permission you set.
Good luck.
-Jesse
On Nov 17, 6:09 pm, Kyu wrote:
> @Jesse Heitler:
> I don't use an underscore in my domain name.
>
> @Tom Evans:
> I'm just running the website locally
This is a long shot, but do you happen to have an underscore in your
domain name? Some browsers choke on that character and refuse to
return cookies.
-Jesse
On Nov 17, 9:40 am, Kyu wrote:
> Hi, I'm doing very basic AJAX operation using Django 1.3.1.
>
> 1) First of all, I copied t
Aha! I knew i was crazy :) Thanks!
On Mon, Jul 18, 2011 at 7:49 PM, Venkatraman S wrote:
> Are you missing to 'return' HttpResponse?
>
> -V
>
> --
> 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
I'm not sure if this is a bug (though it probably is) and wanted to
review here before submitting a report. Consider the following
handler:
def test(req):
if req.method == "POST":
HttpResponse("the request was a POST")
else:
HttpResponse("the request was not a POST")
Thi
https://github.com/lacostej who does not
seem to be maintaining it anymore.
-Jesse
On Apr 27, 10:58 pm, Shawn Milochik wrote:
> http://dpaste.com/hold/536487/
>
> I cobbled this little script together that monitors my project folder
> and runs tests every time a .py file is saved. I
Hello,
I've successfully implemented mod_wsgi with Apache on Windows XP using
MySQL 5.1. Everything but the CSS/html for the index page is
working. Even the admin pages are working with style sheets. The
following is my code. I cannot seem to find the error that is not
loading the CSS style she
I have django and postgres working on the local django server. I had
to install psycopg2-2.2.2.win32-py2.7 in order for that to work. I
don't believe I have access to an earlier version of psycopg. Are you
using postgres?
Jesse
On Sep 2, 5:41 pm, Mike Dewhirst wrote:
> On 3/09/201
;mysql', 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3'
[Thu Sep 02 13:46:30 2010] [error] [client 127.0.0.1] Error was:
cannot import name utils
Thank you!
On Sep 2, 9:10 am, Jesse wrote:
> Thanks! I did see the hello using the co
ot;c:/public/media/"
Order allow, deny
Option Indexes
Allow from all
IndexOptions FancyIndexing
WSGIScriptAlias / "c:/public/apache/django.wsgi"
//end code
The error is Request operation failed.
Thx for your help!!
Jesse
On Sep 1, 8:53 pm, Graham Dumpleton
wrote:
> On Se
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
Apache starts fine, no errors, but the localhost is still the original
apache page and not hello world.
Jesse
On Sep 1, 4:25 pm, Graham Dumpleton
wrote:
> On Se
wing line to Apache http.conf
Include "c:/django/testproject/apache/apache_django_wsgi.conf"
7. Apache error, cannot restart.
Any help is much appreciated.
Jesse
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
I'm trying to load django/python 27/apache onto Windows XP. I'm
following the instructions that recommends mod_python. Mod_python is
no longer available. What is it's replacement? Will apache work
without it?
Jesse
--
You received this message because you are subscribed to th
Do I not need it to run Apache on Windows with Django? Or what is the
alternative? This is the 5th server I've set up and I've always used
mod_python until now. How do I get past this mod_python step?
Jesse
On Aug 27, 2:16 pm, Steve Holden wrote:
> On 8/27/2010 3:21 PM, Jess
I'm loading django onto Windows XP professional with Apache.
Unfortunately, I need mod_python which only works with python 2.3.
Django needs python 2.4 and above. Is there a way around this?
Thx
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
{'fields': [('loinc_obr4')]})
]
The admin template shows the loinc_obr4 field, but I need the
description to also appear with the loinc_obr4. How do I expand the
foreign key in the admin to add more attributes in the drop down?
ACCESS has this capability when creating a co
You won't be able to use a GenericForeignKey in this situation, but
you could write a helper method and define a property to affect
something similar. For example:
class ModelTwo(models):
model_one = models.ForeignKey(ModelOne)
object_id = models.PositiveIntegerField()
def get_content_o
c.
Here's the link to the Google Code project:
http://code.google.com/p/django-calais/
Would love to hear what you all think. Thanks!
- Jesse Legg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django user
Nevermind, found this:
http://www.djangoproject.com/documentation/models/many_to_many/
And got it working. woo WOOO!!!
On Tue, Jul 14, 2009 at 2:28 PM, Jesse Warden wrote:
> n00b here. I'd like to create a complex Model from a Flex Object
> (basically decoded JSON). I've
n00b here. I'd like to create a complex Model from a Flex Object (basically
decoded JSON). I've created a Model successfully already, but am unsure how
to do this with the multiple Models that have ManyToMany relationships with
each other.
This works:
def create_power(request, powerObj):
try:
p
I have three drop down select boxes, which I have to expand for web
visibility reasons with the size='' option. If I select one from each
box I receive no errors, but if I leave one or more boxes without a
selection I receive an error.
{% for pathology in pathology_list %}
{{ pathology
ck. Alternately you could use year_id if you
> don't need your Year model for the template.
>
> Derek
>
> On May 29, 3:33 pm, Jesse wrote:
>
> > Hello,
>
> > year_id (2004 etc) is a dropdown box on the template. The users
> > selects a year and this is r
Hello,
year_id (2004 etc) is a dropdown box on the template. The users
selects a year and this is retrieved as year_id in the view. I need
to select publications based on year from a field called grantstartdt
which is in the format 2008-01-01. The error is:
int() argument must be a string or
I installed django-cms with Apache/windows. Pages comes up under the
admin menu. I can also see new pages I added. When I open the new
page the formatting is off. The add content to template is hiding
behind the info window (dates, times, etc). I'm not sure how to fix
this formatting problem?
ady known and
> being worked on, it is one of the tickets that need to be fixed in
> order to ship django 1.1.
>
> http://code.djangoproject.com/ticket/10061
>
> If you need a quick fix, have a look at the comment by
> carljm:http://code.djangoproject.com/ticket/10061#commen
I'm setting up a new server with Apache/mod_python on windows. I can
see my data on the admin page, but when I log out it is logging out
with two admin/admin and I get an error page not found. I cannot
figure out why this is happening?
Thx
--~--~-~--~~~---~--~~
Yo
Hello,
I've successfully implemented django-cms with tinymce for all my
webpages. My problem is that one of the webpages must retrieve data
from the database into drop down boxes. The template is called
search_globaldb. The cms forces the url to look for this template in
the cms database table
12, 6:13 pm, Jesse wrote:
>
>
>
> > Hello,
>
> > I'm using tiny_mce with flatpages in the admin. I can get the
> > template to appear with the extended CSS, but not the flatpage
> > contents of the page.
> > My flatpage in admin is:
> > URL: /
Hello,
I'm using tiny_mce with flatpages in the admin. I can get the
template to appear with the extended CSS, but not the flatpage
contents of the page.
My flatpage in admin is:
URL: /
Content: much text that is not appearing in the template.
The template:
...templates/flatpages/default.html
Hello,
The thread link didn't go through.
On May 7, 12:25 pm, branesks wrote:
> Follow this thread.
>
> Sent from my iPhone
>
> On May 7, 2009, at 12:09, Jesse wrote:
>
>
>
> > Hello,
>
> > I've implemented both django-cms and flatpages, but c
Hello,
I've implemented both django-cms and flatpages, but can not get
tiny_mce to display in either. My
URLs.py file:
(r'^tinymce/', include('tinymce.urls')),
from django.conf import settings
if settings.DEBUG:
urlpatterns += patterns('',
(r'^site_media/(?P.*)$', 'django.views
./site_media/js/tiny_mce/tiny_mce.js while the file
> apparently is at .../site_media/tiny_mce/tiny_mce.js.
> Zain
>
> On Mon, May 4, 2009 at 9:59 AM, Jesse wrote:
>
> > Hello,
>
> > I'm trying to implement django-cms. The CMS pages in admin display,
> > but no
Hello,
I'm trying to implement django-cms. The CMS pages in admin display,
but not with the editing someone without html knowledge will be able
to use. I see no tinymce options. I've placed tinymce in several
places hoping somehow it would display where I need it.
Using this statement in a fir
I am receiving this error when requesting a pdf file that was uploaded
in admin using FileField
Page not found (404)
Request Method: GET
Request URL:http://127.0.0.1:8000/site_media/pdf/Alg_.pdf
The settings file:
MEDIA_URL = 'http://127.0.0.1:8000/site_media/'
the models file:
in
Thanks I'll give the suggestions a try.
On Apr 14, 9:55 am, Karen Tracey wrote:
> On Tue, Apr 14, 2009 at 12:35 PM, Alex Gaynor wrote:
> > On Tue, Apr 14, 2009 at 12:25 PM, Jesse wrote:
>
> >> The error is 'ascii' codec can't encode character u'\
The error is 'ascii' codec can't encode character u'\xb0' in position
98: ordinal not in range(128) and it occurs when a temperature degree
such as 35°C
is in the text.
I'm using the following code in the view.py:
response = HttpResponse(mimetype='text/csv')
response['Content-Disposition'
Hello Tim,
I gave it a try, no errors, but also no results for the Contact. I
think I have a problem in the resultsc statement. How do I filter out
both qset3 and qset3_inner?
query = request.GET['q']
terms = query.split()
# terms = re.findall(r'\w+', query)
if query: # will
My model has firstname and lastname as separate fields. In a search
box if a person types in one name say "Bunny" then based on the
following query they will find Bunny:
qset = (
Q(firstname__icontains=query) |
Q(lastname__icontains=query) |
)
If a person types
I was not aware of the __in option! However, I think the best option
now that I've rethought this problem is to change my models. Thanks!
On Mar 25, 6:21 pm, Malcolm Tredinnick
wrote:
> On Wed, 2009-03-25 at 09:46 -0700, Jesse wrote:
> > One research project can have many publ
One research project can have many publications. One model includes
the research projects, one model includes the publications and a third
model assigns multiple publications to each research project.
The model:
class Researchproject(models.Model):
restitle = models.TextField()
class Publica
Thanks everyone for the suggestions! I will get started on redoing
the functions and views.
On Mar 19, 9:29 am, Andy Mckay wrote:
> On 19-Mar-09, at 8:35 AM, Jesse wrote:
>
> > My concern is that each view has 87 lines of duplicate code from the
> > "GET" data to
I'm fairly new at Django, I'm thinking there must be a
more efficient way to write the views? I'm very pleased with how
everything is working, so now I am going back to try to clean up the
code.
Thanks.
On Mar 18, 6:43 pm, Malcolm Tredinnick
wrote:
> On Wed, 2009-03-18 at 11:2
In the view.py I have (def Bypub) that sends data to a template and
paginates it. I have a second (def TextFile) that uses the same data
to send to a CSV file. I would like to combine the two (def Bypub and
def TextFile) together into def Bypub, but I'm not sure how to write
the statements to c
Hi Everyone, I'm helping a good friend of mine find someone with
Django/Web skills for a new startup - the opening will be posted on
djangogigs soon, but I also wanted to share it with you.
Feel free to contact me (jnoller at gmail dot com) or jobs at nasuni
dot com about this position. I've also
>
> On Tue, Mar 17, 2009 at 7:47 PM, Jesse wrote:
>
> > Hello,
>
> > I've finally gotten pagination to work. Now I would like to add a
> > sequential number to the beginning of each record in the output. In
> > previous languages I used something like coun
Hello,
I've finally gotten pagination to work. Now I would like to add a
sequential number to the beginning of each record in the output. In
previous languages I used something like count=count+1 and then placed
count at the beginning of each record output in the template. How is
a record coun
; -Paul
>
> On Mar 13, 12:13 pm, Jesse wrote:
>
> > Hello Micah,
>
> > I can get the q with GET, but I have too complicated of a search and I
> > need to use POST. I'm having much difficulty with my template code
> > with POST to work w
Hello Micah,
I can get the q with GET, but I have too complicated of a search and I
need to use POST. I'm having much difficulty with my template code
with POST to work with paginator. I'll keep trying. Thanks for your
patience and help.
--~--~-~--~~~---~--~~
Hello Micah,
I tried this in the template:
next
The browser URL is:
http://127.0.0.1:8000/Search/?q=?&page=2
and this in the template:
next
The browser URL is:
http://127.0.0.1:8000/Search/?q=harris&page=2,
which is correct for q, but the error for both is still:
Request Method: GE
rieve with a
new view and use that view for the pagination. I can see that the
pagination works better with a simple retrieval. Can you tell me how
to create a new object from "list" that can be retrieved in a new
view?
Thanks.
On Mar 11, 10:20 pm, Micah Ransdell wrote:
> Jesse,
&g
The following code is for a search on q and attaches tuples from the
search on another model. The search results are appended together to
create the final data results "list".
def Bypub(request):
query = request.POST['q']
if query:
qset = (
Q(pubtitlestrip__icontains=q
class Pathology(models.Model):
pathology = models.CharField(max_length=100, null=True,
blank=True)
class Pathpubcombo(models.Model):
pathology = models.ForeignKey(Pathology)
publication = models.ForeignKey(Publication)
Currently, I select all the pathologies from the model Pathology
The problem is that the python converts the andor value to a
character, even though the radio button is presenting it as numeric.
I needed to place quotes around the number:
if andor == '1' and then it works. Hope this helps someone else.
--~--~-~--~~~---~--~~
You
Template:
{% for pathology in pathology_list %}
{{ pathology.pathology }}
{% endfor %}
There are actually three search selects(pathology, commodity,
technology) The user can do and/or for a mix or match of the three,
which is why I need the and/or option in the views.py.
Hello,
I have a radio button in template for a search "AND" or "OR"
selection, with the name andor1 values 1 (or) and 2 (and)
In the views.py:
def Bypub(request):
andor1 = request.POST['andor1']
list=[]
andlist=[]
for publication in pub1:
if andor1 == 1:# this assign
Thanks! That worked.
--~--~-~--~~~---~--~~
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 group, send email to
django-user
I tried that option and received this error:
Cannot resolve keyword 'institution_institution' into field
However, I think I may have it. I used this statement:
qset2 = (
Q(institution__icontains=queryr)
)
resultsi = Institution.objects.filter(qset2).distinct()
I have a Project model with a foreign key to institution. I want to
do a Q(institution_icontains)=queryr
on the institution field in the institution table, but the filter
needs to go through the Projects model.
I need all institutions associated with a Project.
class Project(models.Model):
I figured out what to do.
I created a new instance in the view.py:
def search(request):
newdate='1999'
In the template I used the "Y" for both instances and was able to get
the comparison to work:
{% ifequal items.startdt|date:"Y" newdate|date:"Y" %}
this does the correct compariso
ppend(publication) by
pubtitle?
Thank you!
On Feb 25, 9:24 pm, Parthan SR wrote:
> On Thu, Feb 26, 2009 at 2:24 AM, Jesse wrote:
>
> > I have three statements:
> > publications = Publication.objects.filter(techpubcombo__technology=t)
> > publications2 = Publication.objects.f
> I believe this would work:
>
> publications = Publication.objects.filter(techpubcombo__technology=t)
>
> Regards,
>
> --
> Christian Joergensenhttp://www.technobabble.dk
Hello Christian,
Thank you so much for your answer. I have been struggling with the
users group to get that syntax (I must
I have two date fields: startdt and enddt. The template code that
works is:
{% ifequal items.startdt items.enddt %}
this says startdt and enddt are the same (as seen in the template)
{% endifequal %}
In postgres I have a date value in the startdt and enddt fields
stored like this:
checking if the same view is called with the same arguments, instead
of just comparing URLs. So it can handle cases where different URLs
map to the same view. It also doesn't require modifying any of the
child templates, like some of the solutions described above.
-Jesse
On Oct 17, 6:
code with
google where someone had specified widget=forms.Textarea, which worked
fine.
My apologies.
On Sep 1, 9:48 pm, Jesse <[EMAIL PROTECTED]> wrote:
> I'm terribly new and inexperienced, and after 30-40 minutes of
> googling I cannot find anything to help my problem:
&
I'm terribly new and inexperienced, and after 30-40 minutes of
googling I cannot find anything to help my problem:
class roomForm(forms.Form):
authorName = forms.CharField(max_length = "30")
authorWebsite = forms.CharField(max_length = "50")
title = forms.CharField(max_len
he models classes/Meta
options.
thanks
-jesse
--~--~-~--~~~---~--~~
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 th
This only occurs (as far as I have found) when I use the {% block %}
feature of a template. Anyone know of a reason why?
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in
render_node
723. result = node.render(context)
File "/usr/lib/pyth
Hey all,
I made this the other day to help me track all the sql statements my
pages were doing. I wanted something unobtrusive (i.e. middleware)
and simple. Hope you like:
from django.db import connection
import re, pprint
body_end = re.compile('', re.IGNORECASE)
class DebugMiddleware(object
to appear.
Could anyone point the way for me? I don't think my answer is "all
models in one file" since this is a very large site with 80+ models.
Many thanks,
jesse
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
if request.POST['_method'] in self.fakers:
request.method = request.POST['_method']
return None
}}}
That coupled with @require_http_methods seems to work well in my
minimal testing.
jesse
-
Or:
from django.http import HttpResponseNotAllowed
return HttpResponseNotAllowed()
On 4/9/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 4/9/07, johnny <[EMAIL PROTECTED]> wrote:
> > At a particular url, my view is looking for XML document to be sent
> > over http, by post. If a request c
82 matches
Mail list logo