Re: Jasper Reports

2007-06-12 Thread Joel
oject - they were very custom. It's nice that ReportLab integrates tightly with Django. I think that trying to use Jasper would have been a kludge at best. -- Joel [EMAIL PROTECTED] wrote: > Has anyone successfully used Jasper Reports on the server being called > from a Django view? >

Re: How to setup Django on Apache with correct rights and owners

2007-06-20 Thread Joel
g to have really poor performance since the py files will have to compiled each page request. (Unless you're uploading the pyc files along with the py files??) I've been struggling with this issue lately... I'm glad to be proven wrong and/or shown the

Re: When 1.0 ?

2007-09-10 Thread Joel
I suspect you'll find many of those on django-users prefer django over other frameworks. Go to a turbogears user group and you might get another opinion. I happen to like Django over all of the other frameworks I've used. est wrote: > Hi I am a new web developer in django. Could anyone tell me

Re: IDE

2008-03-06 Thread Joel
Two thumbs up for Eclipse+PyDev. Plus all the other Eclipse goodies: * Source control integration * Aptana for CSS, JS, and HTML editing PyDev even has a for-pay python debugger, although I don't use it. -- Joel Peter Danielczyk wrote: > I agree with casseen. > > Eclipse &

IOError with Apache/mod_python

2008-05-05 Thread Joel
odd that this only happens every hundred requests or so. Thanks for helping! -- Joel --~--~-~--~~~---~--~~ 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@goo

Integrating Jasper reports / Reporting in general ??

2007-04-09 Thread Joel
/wiki/do/viewPage/projects.ireport/wiki/Screenshots) Has anyone seen something like this for Python? Or even Django? I want to avoid re-writing something that's already been done. In general, what are you using for your PDF-reporting needs? Thanks! --

Re: Integrating Jasper reports / Reporting in general ??

2007-04-09 Thread Joel
Ahh - forget it. I looked further into ReportLab and found out just how impressive it is. -- Joel Joel wrote: > I saw that someone has let Ruby use JasperReports with a simple script: > > http://wiki.rubyonrails.org/rails/pages/HowtoIntegrateJasperReports > > I would lov

Calling templates within templates - a'la Mason

2005-12-12 Thread Joel
an object to be printed? One more quick one, sometimes I wanted data in the objects but not in the tables. What I wanted was to have an error message associated with each Question, but I didn't want that stored in the database. How would you do that? Django is an awesome project. I have been spreading the word. Joel

Unexpected behavior with icontains in query filter

2018-08-10 Thread Joel
secdurn = SlotDurn*60 slotlist = [] for sec in range(startstamp, endstamp, secdurn): enttime = sec + secdurn myrange = ("%s - %s" % (HumanTime(sec), HumanTime(enttime))) slotlist.append(myrange

Compiling django filters into a variable and executing it at runtime?

2018-08-15 Thread Joel
I'm trying to write a search function for my model. A customer has the following fields: cstid = models.AutoField(primary_key=True, unique=True) name = models.CharField(max_length=35) age=models.IntegerField() gender = models.CharField(max_length=10, default='') mobile = models.CharField(max_lengt

Re: text editor

2018-09-02 Thread Joel
One can carry on discussion about something as subjective as "best text editor" for days and still not be done. IMO, this is a silly question to be asking in a django group. On Mon 3 Sep, 2018, 3:16 AM victor jack, wrote: > More like vim and vs code are the best editors > > On Sun, 2 Sep 2018 06

Re: How do I display the human readable name of a choice?

2018-09-06 Thread Joel
This is clearly described in the polls application tutorial. https://docs.djangoproject.com/en/2.1/intro/tutorial01/ On Thu 6 Sep, 2018, 9:38 PM Ousseynou Diop, wrote: > Hi friend , > > use this function to display the choices field. > > models.py > > > class Article(models.Model): > > ARTIC

Re: Recreate all tables in mysql after dropping the database

2018-09-17 Thread Joel
wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Hi Joel, > > On Sun, Sep 16, 2018 at 10:16:42PM +0530, Joel Mathew wrote: > > I tried to fix mysql problems in my database by dropping tables. When > that > > didnt work, I dropped the database. > > I t

Re: Refer tutorials to make multitenant application with shared database with multiple schma

2018-09-19 Thread Joel
Follow the django tutorial. Once you complete part 2, you can easily start writing. https://docs.djangoproject.com/en/2.0/intro/tutorial01/ You don't have to worry too much about schema as you use models. On Wed 19 Sep, 2018, 12:39 PM Devender Kumar, wrote: > Hi, > I need a help from you I wa

Re: Error running Django tutorial

2018-09-20 Thread Joel
Show the urls.py after adding everything. Note that there must be two urls.py. One in the project folder, another in the app folder On Fri 21 Sep, 2018, 12:18 AM Asong nkemzi, wrote: > Hello, Ruth did you ever solve this problem? I am experiencing exactly the > same issue > > On Thursday, March

Re: How to add form field dynamically?

2018-09-26 Thread Joel
Describe what you mean by add dynamically. If blocks in templates allow a great deal of flexibility. On Wed 26 Sep, 2018, 5:16 PM Django Lover, wrote: > I am creating a model form, i need to add a field dynamically can you > please give me the solution by using your sharp intelligence? > > [imag

Re: How to add form field dynamically?

2018-09-26 Thread Joel
I don't think django alone can help you here. You need to do that with JavaScript. On Wed 26 Sep, 2018, 6:01 PM Django Lover, wrote: > Hi joel Thank for response. > > *I want something like this-* > > [image: form.png] > > > > > > > > > > 1-

Re: favicon.ico

2018-09-30 Thread Joel
Please produce complete error report. On Sun, 30 Sep, 2018, 5:37 PM Prajesh Parekh, wrote: > how to solve error of favicon.ico in url.py ? server is showing error of > favicon.ico > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To uns

Re: Best option for hosting django website

2018-10-08 Thread Joel
You need to know something about webservers too to set it up, though with helper modules like wsgi_express it has become easy. Get a vps, or a droplet from digitalocean or linode. On Mon, 8 Oct, 2018, 4:39 PM Muhammad Tahir, wrote: > i need to host my django website on live server. what are the

Re: Django 2.1.1 creating CharField in a Form in Django on a Raspberry pi

2018-10-09 Thread Joel
instead of {{ frm }}, try: {{ form }} I think you'll understand what you did wrong. On Tue, 9 Oct, 2018, 5:07 PM , wrote: > hello, > > I've tried to create a simple CharField in a Form and show it in my > webbrowser > but I didn't see anything on my webbrowser? > > > Below my code: > > *form

Re: Django 2.1.1 creating CharField in a Form in Django on a Raspberry pi

2018-10-09 Thread Joel
You passed form to template, so you have to refer to that. On Tue, 9 Oct, 2018, 5:33 PM konstantin Heinrich, wrote: > I declared in views.py variable called frm so I have to use it > in my html file to have access to that file.? > > > > Am Di., 9. Okt. 2018 um 13:5

Re: Regarding static media setup

2018-10-11 Thread Joel
Post the relevant files if you want someone to help On Fri, 12 Oct, 2018, 11:44 AM ashok kumar reddy, < ashok1101kuma...@gmail.com> wrote: > Hello everyone . When I try to setup static Media ,I am repeatedly getting > error in URLs.py(urlpatterns not defined ). could you solve this. > > -- > You

Re: mysql client error

2018-10-13 Thread Joel
What exactly is the error? On Sat, 13 Oct, 2018, 6:56 PM highnes joseph, wrote: > how to fix pip install mysqlclient error? > > -- > 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 i

Re: Use tables from database with creating models

2018-10-16 Thread Joel
Any reason why you hate models? On Wed, 17 Oct, 2018, 11:16 AM Rakhee Menon, wrote: > > > Yes Thank You.. > > -- > 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

Re: django username and password error

2018-10-17 Thread Joel
Yes, my server did support ssl. But on my local development environment it doesn't support ssl. On Wed, 17 Oct, 2018, 4:41 PM mottaz hejaze, wrote: > does your server support SSL ? did you configure your server for SSL ? > > On Wed, Oct 17, 2018 at 12:10 PM Joel Mathew wro

Re: new to django

2018-10-18 Thread Joel
Or you may need to add the location of your installation directory to the system path. On Fri, 19 Oct, 2018, 9:00 AM Shubham Bajaj, wrote: > Thank u.. > > On Fri 19 Oct, 2018, 8:35 AM Joel Mathew, wrote: > >> just purge and reinstall django >> >> >> On Fri,

Re: new to django

2018-10-18 Thread Joel
No, sorry. On Fri, 19 Oct, 2018, 9:18 AM Shubham Bajaj, wrote: > I already did these all... > Can u help me with team viewer if possible > > On Fri 19 Oct, 2018, 9:14 AM Joel, wrote: > >> Or you may need to add the location of your installation directory to the >> sy

Re: generate username and password

2018-10-19 Thread Joel
You can choose anything. Username and password creation happens simultaneously with that command On Fri, 19 Oct, 2018, 7:03 PM , wrote: > and to generate the username? > > Le vendredi 19 octobre 2018 03:05:26 UTC, Joel a écrit : >> >> newpassword = Ran

Re: Urls in Django model for dynamic template loading

2018-10-19 Thread Joel
which is your error? The one with "unable to load files.js? If so, check your template. Probably available static files path issue. On Fri, 19 Oct, 2018, 5:29 PM Tosin Ayoola, wrote: > got little project on the project, i'm working on, can't seems > to able to save my form to databa

Re: error 501

2018-10-19 Thread Joel
Probably going to need a little more context (pun intended) on this one On Fri, 19 Oct, 2018, 4:58 PM Neethi Ramaiah, wrote: > how to solve this error Error response > > Error code 501. > > Message: Unsupported method ('GET'). > > Error code explanation: 501 = Server does not support this operat

Re: Displaying items differently on one template based on age

2018-10-19 Thread Joel
You're using three different database queries. You could just fetch the most recent 11 objects, into a variable, use [0] for the most recent one. And then display the next 10 and break them into columns with css wrap. On Sat, 20 Oct, 2018, 9:20 AM Daniel Veazey, wrote: > I'm using 2.1. I have

Re: test error

2018-10-21 Thread Joel
He's using literal string interpolation. Read: https://www.python.org/dev/peps/pep-0498/ On Sun, 21 Oct, 2018, 5:49 PM Tommaso Bellini, wrote: > What does mean 'f' ? It is not imported or instanced..what is it? > > Il dom 21 ott 2018, 06:24 Tim Vogt (Tim Vogt) ha > scritto: > >> I try to make a

Re: test error

2018-10-21 Thread Joel
What is your version of python? f strings were introduced in 3.6 On Sun, 21 Oct, 2018, 9:54 AM Tim Vogt (Tim Vogt), wrote: > I try to make a test with has an error > any suggestions? > tim > > > expected_author = f'{post.author} > ^ > SyntaxError: EOL whil

Re: Where to start - New to Django and Python

2018-10-22 Thread Joel
If you don't know python, spend time on basic language and structure before starting django. The python documentation has a good tutorial. The courses on udemy are good. For learning django, the official django tutorial set is sufficient. On Mon, 22 Oct, 2018, 5:31 PM Lokendar Singh, wrote: > Hi

Re: Django auto-deletes field related to MySQL Transactions

2018-10-23 Thread Joel
You could have a signal which captures all these and logs its origin. On Tue, 23 Oct, 2018, 9:35 PM RyanW, wrote: > Yes, I honestly don't see how Django could be doing this either. The only > I could think of was user deletion, but no one has claimed to have done so. > > No other apps are conne

Re: Trigger actions independently of url request

2018-10-26 Thread Joel
There's nothing that prevents you from doing the necessary imports of your django model and other required modules in a python script, and then have it run by cron. Is there? I've operated python scripts outside of the django application, just to import certain files into the database, which needs

Re: Django table with checkboxes

2018-10-27 Thread Joel
Very simple. Give each checkbox a unique name, and process the submit request by reading request.POST.getlist. On Sat, 27 Oct, 2018, 5:52 PM nitesh rawat, wrote: > Hi Stanislav, > I hope you get the solution to your problem, if you can , share the code. > Thanks. > > On Monday, August 1, 2011 at

Re: Django table with checkboxes

2018-10-27 Thread Joel
item = get_object_or_404(billitem, code=sel) try: code = item.code In the template you can have something like this: {% for item in appointment_items %} {% endfor %} On Sat, 27 Oct 2018 at 18:01, Joel wrote: > > Very simple. Give each checkbox a

Re: How to move readonly_fields on top of page?

2018-11-04 Thread Joel
Explain. What do you mean move on top of page? On Mon, 5 Nov, 2018, 2:46 AM Karol Ołtarzewski <2004ka...@gmail.com wrote: > Good morning guys. > > I have a problem namely: > I have to place readonly_fields on top of > /admin///change page, higher than normal fields. > I was looking through docs a

Re: hi everyone

2018-11-11 Thread Joel
I don't really understand what you mean. How can you put something on your resume when you haven't contributed to it? On Mon, 12 Nov, 2018, 12:06 PM ramakurthy swamy hi sir thank u for giving reply and the real time means what the present > projects are going on company based on python and django

Re: I'm new in Django. please help me out

2018-11-13 Thread Joel
You're bound to be trolled if you post a question which clearly looks like an assignment, with zero effort on your part. Where's your code? What did you try? On Tue, 13 Nov, 2018, 3:38 PM Dheeraj Kumar if you guys do not help ,plz ignore it insist of trying to be over > smart.this is home work or

Re: PDF extarcting

2018-11-13 Thread Joel
use pip3. It would be nice if you could keep the non django discussion out of this group. On Tue, 13 Nov, 2018, 6:47 PM swathi2801 Yadhav pdf text tool not installing in this version what to do next? > > > On Tue, Nov 13, 2018 at 6:41 PM swathi2801 Yadhav < > swathi2801yad...@gmail.com> wrote: >

Re: Sending PDF from javascript to django

2018-11-14 Thread Joel
Ideally I would love to generate the pdf on the server. Hovered I am yet to discover an easy way to create a pdf easily with the ease of jspdf's table plugin. Perhaps someone can shed light on a good python library to do this without much ado. On Wed, 14 Nov, 2018, 7:12 PM Jason your original er

Re: Render works but url does not change

2018-11-15 Thread Joel
Post details.. The url, your urls.py etc On Fri, 16 Nov, 2018, 8:05 AM Derrick Lu HI, > I am having trouble with url when rendering to a new page via a button. > The new page renders but the url does not reflect the new page. > Has anyone had that problem before? > > -- > You received this messag

Re: How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-17 Thread Joel
Yes. But it's not usable when we're using JavaScript to fetch the url. On Sat, 17 Nov, 2018, 9:20 PM Jason oh, I didn't know that was a thing. TIL. > > > https://docs.djangoproject.com/en/2.1/ref/request-response/#django.http.FileResponse > > note the bit about as_attachment setting content disp

Re: API project example

2018-11-17 Thread Joel
Follow the initial two django tutorials and you'll get the idea. On Sun, 18 Nov, 2018, 5:23 AM Arturo Fernandez Hi guys, I'm developing an idea, but the funny things is that I'm learning > Django at the same time. Do you guys know of any SIMPLE project that > requests data from an api and display

Re: iss api

2018-11-18 Thread Joel
Isn't this reverse geocoding? I think it's already an example in the official tutorial. On Sun, 18 Nov, 2018, 7:45 PM gokul s hi i want create model that get the longitude and lattitude for > International Space Station and plot the longitude and lattitude on map so > that we can track the live l

Re: mail sending

2018-11-22 Thread Joel
django-kronos is probably the easiest to do this. As mentioned, you could create a management command to check a database or file for the time when you want to run this, with any other data, then you'd set an interval at which you want to check if mails need be sent, and then execute your mail send

Re: Working with kronos

2018-11-22 Thread Joel
Yes, the language of the documentation certainly needs tweaking. I had done the installtasks and it did work. Thank you very much for your help. Now, I can have my app check for upcoming appointments and send reminders. It was a much needed functionality. On Fri, 23 Nov, 2018, 9:06 AM Jason the d

Re: Working with kronos

2018-11-22 Thread Joel
Thanks for the advise regarding understanding the issue in depth. My initiation to python has been all of three months, and to django since two. So far, I'd been scared to look under the hood, and any further than the documentation. But I realize that it's not as daunting now add it used to be. And

Re: Unexpected behavior on delete of model

2018-11-27 Thread Joel
>> username = models.CharField(max_length=15) >> >> profile_pic = StdImageField(upload_to="data/media/%Y/%m/%d", >> blank=True, variations={ >> >> 'large': (600, 400), >> >> 'thumb

Re: Unexpected behavior on delete of model

2018-11-27 Thread Joel
Ignore the last post. Formatting blues in my main editor. On Wed, 28 Nov, 2018, 11:34 AM Joel I think you made a typo in the code. doctor can't be a Foreign key for > class Doctor. Anyway I get your point, and this is the same way I solved it > yesterday. > > On Wed, 28 No

Re: CSRF token not adding hidden form field

2010-06-10 Thread Joel Klabo
yeah, still 403. CSRF token missing or incorrect. On Jun 10, 7:20 pm, Lee Hinde wrote: > Is the error the same? > > > > On Thu, Jun 10, 2010 at 5:41 PM, joelklabo wrote: > > Still won't work. Here is my views.py: > > > def login(request): > >        c = {} > >        c.update(csrf(request)) > >

Re: CSRF token not adding hidden form field

2010-06-12 Thread Joel Klabo
ponse('profile.html', {'drinks' : drinks, 'followers' : followers}, context_instance=RequestContext(request)) Thanks for all the help! On Jun 11, 9:32 pm, Ali Kusnadi wrote: > On 6/11/10, Joel Klabo wrote: >

Django architecture question

2010-06-14 Thread Joel Klabo
I am working on a simple site right now and the views are pretty easy. Usually just iterate a loop of objects. But, I am trying to figure out how a website with all different kinds of data, including a sign in form, is setup in django. Is that all in one big view? Or, is there some way to combine t

Re: Django architecture question

2010-06-15 Thread Joel Klabo
Thanks, good info. So the template tag can do the DB query and all that without going through a view function? On Jun 15, 8:09 am, Paul wrote: > On 15 Jun., 06:55, Joel Klabo wrote: > > > I am working on a simple site right now and the views are pretty easy. > > Usually just

Re: Django architecture question

2010-06-15 Thread Joel Klabo
y. Is it all javascript or just a huge view with: user login, feeds of current data, etc... On Jun 15, 8:09 am, Paul wrote: > On 15 Jun., 06:55, Joel Klabo wrote: > > > I am working on a simple site right now and the views are pretty easy. > > Usually just iterate a loop of objec

Re: CSRF verification failed - 403 error

2010-07-16 Thread Joel Klabo
I had this same problem. Try this for your return statements, if you're using render_to_response: return render_to_response("a_template.html", c, context_instance=RequestContext(request)) The context_instance was the key in my case. You'll need to add it to all your views though. -- You receive

ModelForm and a new model instance

2010-07-16 Thread Joel Klabo
I am using modelForm to make a form for my Brew model. The form shows up and works fine. And saves it when I call save. But it does not catch the errors correctly. I set it up mostly based on this example: from django.core.validators import ValidationError, NON_FIELD_ERRORS try: article.full_c

Re: ModelForm and a new model instance

2010-07-17 Thread Joel Klabo
That did it! That example was what I was looking for. The error handling led me astray, it's all taken care of. Thanks a lot. On Jul 17, 2:42 am, Karen Tracey wrote: > On Fri, Jul 16, 2010 at 6:27 PM, Joel Klabo wrote: > > I am using modelForm to make a form for my Brew model.

comment template tag not working

2010-07-17 Thread Joel Klabo
I am trying to use the get_comment_list template tag and I keep getting errors. Any ideas? http://dpaste.org/nCx0/ -- 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...@googlegroups.com. To unsubscribe

Re: comment template tag not working

2010-07-17 Thread Joel Klabo
I got it to work by adding: {% load comments %}. I had put the load comments tag in my base.html but didn't work there for some reason. On Jul 17, 1:00 pm, Joel Klabo wrote: > I am trying to use the get_comment_list template tag and I keep > getting errors. Any ideas?http://dpas

django autocomplete search with jQuery

2010-07-29 Thread Joel Klabo
I have been looking around for some examples but I can't find anything recent. This is my first AJAX experience so I would love to just see an example because it's not quite making sense to me. Does anyone know of a tutorial? Or have some code samples I could check out? I have checked google btw.

Custom clean() method

2010-08-24 Thread Joel Klabo
When you write a custom clean method for a form, does is get called by is_valid? Or does it call the standard version? Do I need to explicitly call it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Custom clean() method

2010-08-24 Thread Joel Klabo
Thank you, question answered. On Aug 24, 11:45 am, Shawn Milochik wrote: > Your version automatically gets called during the cleaning process > (assuming it's named properly). You don't need to call it explicitly. > The default cleaning of the field will happen automatically. All you > have to do

method on the User model?

2010-08-24 Thread Joel Klabo
I am trying to find a way to get a list of users ranked by the most "drinks". The drink model has a User field so I am doing this to get the info, based on the Drink model: http://dpaste.com/hold/233600/ But, this seems like craziness. Can't I just search the User.objects.all().order_by('drinks')

apache won't start now for some reason....

2010-08-26 Thread Joel Klabo
Apache was running fine, as far as I know I didn't change anything. This is the error log: http://dpaste.com/234582/ SIGTERM? -- 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...@googlegroups.com. To

Re: apache won't start now for some reason....

2010-08-26 Thread Joel Klabo
Got it, I had accidentally deleted my error.log file and when it couldn't find it it borked itself. On Aug 26, 3:36 pm, Joel Klabo wrote: > Apache was running fine, as far as I know I didn't change anything. > This is the error log:http://dpaste.com/234582/ > > SIGTERM?

question on directory structure for deploying project

2010-08-26 Thread Joel Klabo
on my VPS i have my project at: /srv/www/brooski.net/brooski/(all my files, settings.py, url.py are here) and my VirtualHost is setup like this: ServerAdmin r...@brooski.net ServerName brooski.net ServerAlias www.brooski.net DocumentRoot /srv/www/brooski.net/publi

Re: question on directory structure for deploying project

2010-08-26 Thread Joel Klabo
also, when I change the virtual host path to: /srv/www/brooski.net (instead of /srv/www/brooski.net/brooski/) I get an internal server error. Whereas with '/srv/www/brooski.net/brooski/' I get the actual django error page On Aug 26, 4:20 pm, Joel Klabo wrote: > on my VPS i have

Re: question on directory structure for deploying project

2010-08-26 Thread Joel Klabo
It does have __init__.py, but not the server isn't seeing it... '500 internal server error' On Aug 26, 4:48 pm, Kenneth Gonsalves wrote: > On Thu, 2010-08-26 at 16:44 -0700, Joel Klabo wrote: > > also, when I change the virtual host path to: /srv/www/brooski.net

Re: question on directory structure for deploying project

2010-08-26 Thread Joel Klabo
Could someone just show me how theirs is set up? On Aug 26, 4:54 pm, Joel Klabo wrote: > It does have __init__.py, but not the server isn't seeing it... '500 > internal server error' > > On Aug 26, 4:48 pm, Kenneth Gonsalves wrote: > > > > > On Thu, 2

Re: question on directory structure for deploying project

2010-08-27 Thread Joel Klabo
bmp On Aug 26, 8:14 pm, Joel Klabo wrote: > Could someone just show me how theirs is set up? > > On Aug 26, 4:54 pm, Joel Klabo wrote: > > > > > > > > > It does have __init__.py, but not the server isn't seeing it... '500 > > internal serve

mod_wsgi setup issue

2010-08-27 Thread Joel Klabo
All the files are shown here: http://gist.github.com/554724 I don't know what I'm doing wrong but I'm still getting 500 -- 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...@googlegroups.com. To unsub

mod_wsgi, apache, ubuntu setup question (noob alert)

2010-08-27 Thread Joel Klabo
This is my situation: http://gist.github.com/554724 I am getting 500 internal server error, don't know what's up... I would appreciate any info, I'm a total apache noob. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: mod_wsgi, apache, ubuntu setup question (noob alert)

2010-08-27 Thread Joel Klabo
problem solved for the time being, I needed to add quotes around the 'settings' On Aug 27, 10:08 pm, Joel Klabo wrote: > This is my situation:http://gist.github.com/554724 > > I am getting 500 internal server error, don't know what's up... > > I would appreciat

Saving a location with a model

2010-08-30 Thread Joel Klabo
I want to tie a location to each instance of a model. I am planning on getting the lat/long. from navigator.geolocation through javascript. My original idea is to have a location model with fields, latitude, longitude, and the id of whatever model it is linked to. Is that the way to go? Anyone have

Re: Saving a location with a model

2010-08-30 Thread Joel Klabo
looks cool. Any problems with just adding lattitude and longitute float fields? On Aug 30, 3:38 pm, Mikhail Korobov wrote: > You may find this useful:http://bitbucket.org/barttc/django-generic-location > > On 31 авг, 04:05, Joel Klabo wrote: > > > > > I want to tie a l

django achievements

2010-09-11 Thread Joel Klabo
Does anyone know of an example of someone using django signals to do achievements for a website? similar to foursquare or something like that? I am going to attempt it and i don't really know where to start. I would love some example or a nudge in the right direction. -- You received this message

Re: django achievements

2010-09-12 Thread Joel Klabo
; > > > > On Sat, Sep 11, 2010 at 12:26 PM, Joel Klabo wrote: > > Does anyone know of an example of someone using django signals to do > > achievements for a website? similar to foursquare or something like > > that? I am going to attempt it and i don't really

RSS Questions

2010-09-17 Thread Joel Davis
eed is http://www.tapnik.com/feeds/blog I did notice that this was all refactored in django 1.2, I'd rather stick with 1.1 if I can, but if this might be a lot easier in 1.2 then I'll consider that. Thanks for any advice! Joel -- You received this message because you are subscr

Re: RSS Questions

2010-09-20 Thread Joel Davis
Thanks for trying it. And it works for me now. I guess google had to index it or something... I gave it 24 hours but I guess it needed more time. I thought the description had to be text. I'll try stuffing the html into there and see if it works. Thanks for your help! Joel On Sep 20, 8:

Signals problem

2010-09-22 Thread Joel Klabo
I keep getting this import error and I can't figure out why? Any ideas would be greatly appreciated: http://dpaste.org/BgtI/ -- 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...@googlegroups.com. To u

Re: Signals problem

2010-09-22 Thread Joel Klabo
Update: http://dpaste.org/kK5p/ On Sep 22, 11:41 pm, Joel Klabo wrote: > I keep getting this import error and I can't figure out why? Any ideas > would be greatly appreciated:http://dpaste.org/BgtI/ -- You received this message because you are subscribed to the Google Groups &q

Re: Signals problem

2010-09-23 Thread Joel Klabo
Thanks for the help, all working now! On Sep 22, 11:52 pm, Russell Keith-Magee wrote: > On Thu, Sep 23, 2010 at 2:41 PM, Joel Klabo wrote: > > I keep getting this import error and I can't figure out why? Any ideas > > would be greatly appreciated:http://dpaste.org/BgtI/

Image Upload question

2010-09-23 Thread Joel Klabo
I have a form trying to upload an image. In the docs it says that the form must be bound to save a file. This is an issue for me because I wan't to save the file with other data such as the User object that saved it. I can't put a User object in a form so I put the username in a hidden form field w

Re: Image Upload question

2010-09-23 Thread Joel Klabo
run the .is_valid() method > of the form instance once you've instanciated it with your POST and > FILES data. > E.g. > form = BrewImageFrom(data=request.POST, files=request.FILES) > if form.is_valid(): >     brewimage = form.save() > > On Sep 23, 3:00 pm, Joel Klabo

Re: Image Upload question

2010-09-23 Thread Joel Klabo
from the django docs: inherits all attributes and methods from FileField, but also validates that the uploaded object is a VALID IMAGE. what does valid image mean? On Sep 23, 2:40 pm, Joel Klabo wrote: > Thanks, upload is now working. But, only for smallish .png files, what > a

Re: Image Upload question

2010-09-23 Thread Joel Klabo
The problem was no PIL and libjpeg... On Sep 23, 2:43 pm, Joel Klabo wrote: > from the django docs: > > inherits all attributes and methods from FileField, but also validates > that the uploaded object is a VALID IMAGE. > > what does valid image mean? > > On Sep 23, 2:

Django Registration password reset problem

2010-10-05 Thread Joel Klabo
This is the error and location of the problem: http://gist.github.com/612210, I can't see what it's looking for. It seems like I could hard code the arguments it wants into the reverse() but that doesn't seem like the correct way to do it. Any advice? -- You received this message because you are

Re: Django Registration password reset problem

2010-10-05 Thread Joel Klabo
Need to bump this, sorry. I don't get it. On Oct 5, 1:04 pm, Joel Klabo wrote: > This is the error and location of the problem:http://gist.github.com/612210, > I can't see what it's looking for. It seems like I could hard code the > arguments it wants into the reverse

Re: Django Registration password reset problem

2010-10-05 Thread Joel Klabo
now using the ones that come with django- registration... Here is the view where the error first pops up, this is where post_reset_redirect is as well: http://dpaste.org/gatU/ Thanks for your time On Oct 5, 1:56 pm, Steve Holden wrote: > On 10/5/2010 4:45 PM, Joel Klabo wrote:> Need to bum

Re: Django Registration password reset problem

2010-10-06 Thread Joel Klabo
So now I am redirecting to the named url in the URL conf. That is now giving me the error: The included urlconf registration.auth_urls doesn't have any patterns in it ... http://dpaste.org/OOw5/ any ideas would be greatly appreciated On Oct 5, 5:56 pm, Joel Klabo wrote: > Ok, so I'

Re: Django Registration password reset problem

2010-10-06 Thread Joel Klabo
ust took a cursory look at this but did you make sure to add > something like the following to your urlpatterns in urls.py? > > urlpatterns=patterns('', >     ... >     (r'^accounts/', include('django.contrib.auth.urls')), >     ... > ) > >

Re: Django Registration password reset problem

2010-10-07 Thread Joel Klabo
Take a look at this line: http://1l.to/bf1/ ... so you don't need to add > it (again) to your urls. > > I don't have this error with password_reset_complete view , but I'm using > my clone of original repo with some useful patches (additions). What is > version that you

Re: Django Registration password reset problem

2010-10-07 Thread Joel Klabo
Also, all my code is on Github if you would like to see something else: http://github.com/joelklabo/brooski I really appreciate your help, thank you. On Thu, Oct 7, 2010 at 9:43 AM, Joel Klabo wrote: > My version is: VERSION = (0, 8, 0, 'alpha', 1) > > Yeah, I have that in

Re: Django Registration password reset problem

2010-10-07 Thread Joel Klabo
sounds > like you writing custom admin views? Or you just copied admin/views.py > locally? > > You already tried to resolve via name of url? > Else, if you writing custom admin views, isn't right to reference this > custom views? > > (anyway, tonight I'll check t

Re: Django Registration password reset problem

2010-10-07 Thread Joel Klabo
django.contrib.auth.views.password_change_done') > > to > 110 - post_reset_redirect = > reverse('registration.auth_views.password_reset_done') > 144 - post_reset_redirect = > reverse('registration.auth_views.password_reset_complete') > 177 - post_change_redirect = >

Re: Django Registration password reset problem

2010-10-07 Thread Joel Klabo
s for something, not? 2010/10/7 Joel Klabo > Awesome, that fixed it. All I had to do was change "from registration > import auth_views" to "from django.contrib.auth import views as auth_views" > > Thank you so much > > > On Thu, Oct 7, 2010 at 12:56 P

Customizing Admin Forms Question

2010-01-15 Thread Joel Davis
autogenerates a thumbnail, that works fine, but I might like to have some extra controls to customize the behavior of the thumbnail generation, but these don't need to get stored in the DB anywhere.. Thanks! Joel -- You received this message because you are subscribed to the Google Groups &q

  1   2   3   4   >