Pagination - displaying page numbers

2006-03-23 Thread Stephen
my templates though - are there specific steps to take in order to make changes to the django source files be noticed by the server (I'm using the test server that comes with Django)? Thanks in advance for any help, Stephen. --~--~-~--~~~---~--~~ You receiv

Re: Pagination - displaying page numbers

2006-03-23 Thread Stephen
The answer to the second part of my question *was* very obvious... I was editing the wrong copy of the source file. I needed to change the copy installed under my Python directory, not the one in the Django directory. --~--~-~--~~~---~--~~ You received this messa

Using time.tzset() in settings.py

2013-12-02 Thread Stephen
irly difficult to track down and demo/explain to others, I'd be willing to add some relevant info to the Django docs concerning this issue if we think that's in store. Thank you for your time and feedback, Stephen Christensen -- You received this message because you are su

A little help here please

2020-01-17 Thread Stephen
How can I join two database tables together please?. I'm trying to display every object in a table that is linked to an object in another table. I can't seem to get it to work -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Can't connect databases together

2020-01-17 Thread Stephen
How can I connect 2 database tables together please?. I am trying to display some objects in a table by selecting an object that is in another table. How do I connect them please? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: A little help here please

2020-01-17 Thread Stephen
Thank You On Friday, 17 January 2020 16:36:41 UTC+1, Suraj Thapa FC wrote: > > Use django orm > > On Fri, 17 Jan 2020, 8:48 pm Stephen, > > wrote: > >> How can I join two database tables together please?. I'm trying to >> display every object in a table

Re: Can't connect databases together

2020-01-17 Thread Stephen
sqlite3 On Friday, 17 January 2020 16:53:01 UTC+1, Jonathan Villavicencio wrote: > > Hello Stephen, > > What is the database you are using? > > El vie., 17 de ene. de 2020 a la(s) 10:25, Stephen (steph...@gmail.com > ) escribió: > >> How can I connect 2 database

Re: 25 new messages in 15 topics - digest

2008-10-29 Thread Stephen Wolff
Is there anything like this for Django? http://www.sitepoint.com/blogs/2008/10/24/rails-rumble-245000-lines-of-code-in-48-hours/ I know sprints exist for work on the Django core - but is anyone interested in a Django web app session similar to the Rails one metioned in this article? Stephen

trouble with foreignkey and admin interface

2008-11-24 Thread Stephen Moore
mber, MemberAdmin) then when I try and add a member, I get an error saying " has no ForeignKey to " If anyone could help me try and figure out how to make this work, that would be greatly appreciated :) Thankyou Regards Stephen --~--~-~--~~~---~

nested applications and syncdb question

2008-09-25 Thread Stephen Sundell
I am trying to create one application with multiple modules in it. What I have now is an application directory with multiple directories each with its own models.py file. If I include the application in the settings file and run validate it checks the models, but syncdb doesn't add them to the da

varible reference in template problem

2008-10-06 Thread Stephen Cheng
Hi django friends I got a problem with varible reference in template. the case is like this: I pass a map to a template, I am trying to get map[key], in the case the key= modelA.id, then I have to use map.modelA.id, then it won't work. How can I conquer this? Can I assign modelA.id to another v

form submission problem

2008-10-09 Thread Stephen Cheng
I defined a field title in model the max length is 30 title=models.CharField("Title",max_length=30) while after I key in none - english characters, eg, Chinese and submit the form, it [database] can only take 10 Chinese characters,otherwise raise an exception. I also use an validation rule in th

Re: form submission problem

2008-10-09 Thread Stephen Cheng
if len(str(price))+len(self.clean_title())> 10: raise forms.ValidationError("The length of title plus price should be less than 10 characters") return price class Meta: model=Card On Oct 9, 10:26 pm, Malcolm Tredinnick <

Re: form submission problem

2008-10-09 Thread Stephen Cheng
Sorry about the silly question. This is resolved. All are documented: http://docs.djangoproject.com/en/dev/ref/forms/validation/#using-validation-in-practice Thanks for your help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

distinct for ForeignKey field

2008-10-11 Thread Stephen Cheng
I am wondering how to get distinct values for a ForeignKey field For example: class ModelA(models.Model): . city=models.ForeignKey(City) I understand that I can pass the list to template than probably use regroup and get the group values, but is there a ef

Re: everything works except apache seeing django app

2008-10-16 Thread Stephen Moore
On Thu, Oct 16, 2008 at 10:42 PM, felix <[EMAIL PROTECTED]> wrote: > > > possibly it may be on YOUR pythonpath but it won't be on apache's > pythonpath. > k then.. well I added PythonPath "['/home/iambob/web', '/home/iambob/web/testSite'] + sys.path" to my httpd.conf so the relevant section beco

Re: everything works except apache seeing django app

2008-10-16 Thread Stephen Moore
On Thu, Oct 16, 2008 at 11:56 PM, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > > On 16 oct, 16:58, "Stephen Moore" <[EMAIL PROTECTED]> wrote: >> On Thu, Oct 16, 2008 at 10:42 PM, felix <[EMAIL PROTECTED]> wrote: >> >> > possibly i

Re: everything works except apache seeing django app

2008-10-16 Thread Stephen Moore
On Fri, Oct 17, 2008 at 1:04 AM, felix <[EMAIL PROTECTED]> wrote: > > is your app like this > > testSite > __init__.py >models.py >settings.py >etc. ? > > > ie. its not one folder deeper > > testSite > actualSite > __init__.py > models.py > settings.py

Re: everything works except apache seeing django app

2008-10-17 Thread Stephen Moore
for the record, I fixed the problem it seems the permissions have to be correct for every level of the directory. so for /home/iambo/web then /, /home, /home/iambob and /home/iambob/web had to have the right permissions :) thankyou for the help. ... :) --~--~-~--~~~--

Re: Changing the name of a project

2009-02-12 Thread Stephen DeGrace
Well, if I can't fix it it's not the end of the world because it's backed up with the old name, but I really want to figure out how to go about changing the project name. Anyway both names are pretty distinctive and extremely unlikely to occur incidentally in any unrelated strings. I'll post the t

Re: Changing the name of a project

2009-02-12 Thread Stephen DeGrace
rd eh? Anyway, I won't try that again, although it was interesting. Can you believe I did not know you didn't have the use the project name in imports. I went through my entire project and got rid of the project name in imports. On Fri, Feb 13, 2009 at 12:43 AM, Stephen DeGrace wrote: > We

Re: Changing the name of a project

2009-02-12 Thread Stephen DeGrace
Oh yeah, and the biggest thing: Thanks you guys! You're awesome. Now to figure out deploying the site on WebFaction with mod_wsgi :) On Fri, Feb 13, 2009 at 1:18 AM, Stephen DeGrace wrote: > LOL I'm an even bigger idiot than you guys think :). At the end of the > operation whe

regex query search with [\w]

2009-02-16 Thread Stephen Sundell
I'm trying to do a query filter with a regex expression where I want to search for a word character. I'm using postgresql and if I do Blog.objects.filter(post__regex=r'[\w]'), django ends up using [\\w] in the query. I can't seem to get one backslash in the query. Is there some way to do this?

Django/Apache/wsgi problems -- help!

2009-02-19 Thread Stephen Waterbury
I am a developer with a deadline -- not even a perfectionist, I just want it to work! ;) I am running Django 1.0.2-final on Ubuntu gutsy with Python 2.5. I am also using * django-registration 0.7 * django-profiles 0.2 Everything works fine with django's runserver. In the wsgi environment,

Re: Django/Apache/wsgi problems -- help!

2009-02-20 Thread Stephen Waterbury
Polat, Thank you, thank you!! That solved all the problems I had. I was really at a loss to know where to look -- perhaps I hadn't found the right docs, but this was the first time I had seen the things you suggested. One more question: in what sense did you mean that MEDIA_ROOT "is for file u

Re: Django processes under Apache

2009-02-22 Thread Stephen DeGrace
u that later. I guess zombies are not the end of the world, if there's only few of them. Stephen On Sun, Feb 22, 2009 at 10:29 AM, stevedegrace wrote: > > I don't think I'm understanding this very well. By doing some > inspection, I see that Apache is running under two PIDs,

Can a custom profile reference User's 'first_name' and 'last_name' attrs?

2009-02-25 Thread Stephen Waterbury
I'm using django-registration and django-profiles, and I've created an app-specific profile and subclassed RegistrationForm to populate various profile fields during the registration process. The User class has attributes 'first_name' and 'last_name' that I'd like to access from my customized pro

Re: Background Jobs

2009-03-12 Thread Stephen DeGrace
er first, and reads and deletes the file. So in other words, I have a very crude file-based queue, with primitive locking to make sure only one worker process is spawned (would not do to go over my system resource limits) and middleware to fire it up. I feel a little dirty lol, but I have to say

Re: Background Jobs

2009-03-13 Thread Stephen DeGrace
x27;m probably going to start a branch of my site and try implementing the thumbmaker that way. On Thu, Mar 12, 2009 at 9:16 PM, Stephen DeGrace wrote: > I was facing this problem myself recently. I am running Django 1.0.2 with > Python 2.5.1 on Webfaction... I have a Gallery app that lets

Re: Understanding sessions

2009-03-13 Thread Stephen DeGrace
d and assigned to cart. Then if you want to save that object and put it in the session, you have to cart.save() and request.session['cart'] =cart just like you have in your get_cart method. Stephen On Fri, Mar 13, 2009 at 5:02 PM, sotirac wrote: > > Looking at the django-cart ope

Re: Error on doing tutorial

2009-06-27 Thread Stephen Garton
2009/6/27 Karen Tracey : > FYI, there's a "switch to copy and paste" link which makes the debug > information less verbose and gives you something you can paste into an > email. > Cheers, will use in future. > > What about Python level?  You've got a mixture of what appears to be Python > 2.5,

subdomains cookie problem

2009-06-28 Thread Stephen Cheng
oesn't work. I have no idea how to resolve this. Any idea? Thanks, Stephen --~--~-~--~~~---~--~~ 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@google

Re: subdomains cookie problem

2009-06-29 Thread Stephen Cheng
ve to setup the same cookie var in each of separate subdomain view, which is not acceptable. Hope this clarify things. Thanks, Stephen On Jun 29, 7:36 pm, Raja wrote: > Just checking, Are you submitting back to the server before checking > for the cookie value ?  Cookies are sent on

Re: subdomains cookie problem

2009-06-29 Thread Stephen Cheng
Hi Raja This looks great. Thanks for helping out. Stepehn On Jun 29, 9:17 pm, Raja wrote: > Setup thecookie.domain attribute value to '.mydomain.com' (The first > dot is important) and all hosts in that domain will get thecookie. > > -- Raja > > On Jun 29, 4

Re: creating a list of sql that is executed

2009-08-06 Thread Stephen Moore
duction database. > True.. I also thought of some other problems that could come from this since posting anyway. Thankyou for your help though :) Regards Stephen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Pass context vars to django-registration

2009-05-07 Thread Stephen Cheng
AAA BBB .. but I know that I am hesitated to do this. Any suggestion is appreciated. Stephen --~--~-~--~

Admin page with my own themes/skins

2009-05-07 Thread Stephen Cheng
I have thought this for quite a while and no idea so far. I like the forms/pages auto generated by Admin engine, but I also want to incorporate some of the forms/pages into my site with following expectations: 1. I can use my own template. 2. use my own template and also use the context variables

Re: Pass context vars to django-registration

2009-05-07 Thread Stephen Cheng
No bother, I have found the solution. Simply use the ContextProcessor. On May 7, 10:27 pm, Stephen Cheng wrote: > I have got a case like this: I have a drop down list of value of 8 > cities which requires a db query every time when every page loads. The > problem is when the url is di

Html inside {% blocktrans %} tags

2009-05-08 Thread Stephen Sundell
Can I wrap something like : "Click here to go back." inside a blocktrans tag? If not is there some sort of work around for this? I know in this particular case it wouldn't be to bad to make the whole text the link, but this is just and example. Thanks --~--~-~--~~~--

Why file path and name disappear for Image Field when/after validation

2009-05-23 Thread Stephen Cheng
I suppose that all the fields' value in the form defined in model can be captured and remained when/after you do form validation. My problem is that : 1. When the form is not valid, the filename of image field is gone once you click submit or 2. If I intend to do something else once all fields ar

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Stephen Moore
it needs to be in other configurations. hmm, I'm not sure if that solves the problem or not. It seems less frequent but it does happen. is there a way to pass options to the site with mod_python without relying on environment variables? Regards Stephen --~--~-~--~~---

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Stephen Moore
On Tue, Nov 3, 2009 at 2:31 PM, Graham Dumpleton wrote: > Cant you just have different settings files and set > DJANGO_SETTINGS_MODULES different for each installation? > The problem with that becomes let's say I have the two options production and internet, then that means that I have to have 4

Re: apache gets confused with difference between dev and production version of site

2009-11-03 Thread Stephen Moore
well, my solution wasn't working still... so more research has finally led me to the real problem. http://docs.djangoproject.com/en/dev/howto/deployment/modpython/ I had the PythonInterpreter setting in the apache configurations to the same value. Changing it to a different value for the produc

BaseGenericInlineFormSet failing on Save As New in admin

2010-05-28 Thread Stephen Sundell
I'm using an InlineAdmin that is a generic relation, similar to django tagging, with one of my model admins. The problem is on a save as new, if the original object has tags, then the initial form count, gotten from the management form, isn't zero, even though the new object will have zero tags, c

Re: Content Types and Filtering Generic Relationships

2010-05-28 Thread Stephen Sundell
Have you checked out http://code.google.com/p/django-tagging/ ? On May 28, 12:54 pm, Streamweaver wrote: > Still hoping someone has some insight here.  I've been plugging away > at it and am still not finding an answer I can live with as an > engineer. > > Currently I'm cheating a bit to filter d

Re: BaseGenericInlineFormSet failing on Save As New in admin

2010-05-28 Thread Stephen Sundell
ta, we are only # creating new instances form.data[form.add_prefix(self._pk_field.name)] = None # Remove the object id from the form's data form.data[form.add_prefix(self.ct_fk_field_name)] = None return form On May 28, 12:36 pm, Stephen Sundell

ANN: django-forms-builder 0.2.0 released

2010-07-31 Thread Stephen McDonald
issions via CSV. Grab it from pypi: http://pypi.python.org/pypi/django-forms-builder/ or github: http://github.com/stephenmcd/django-forms-builder/ or bitbucket: http://bitbucket.org/stephenmcd/django-forms-builder/ Cheers, Steve -- Stephen McDonald Twitter: http://twitter.com/stephen_mcd

Re: DjangoDash 2010 is done! Check out the projects done in 48 hours.

2010-08-16 Thread Stephen McDonald
I'm sure there are more entries than this, but here are the ones that were posted around finishing time in IRC: http://servertail.com/ http://transphorm.me/ http://www.buzz-fire.com/ http://dash.manoria.com/ http://ratemyflight.org/ <-- my team's http://www.ihatexml.com/ http://repocracy.com/ http

Re: Django Multiple Quiers to Auth User

2010-08-26 Thread stephen Enright
On further investigation this seems to be caused by the auth AuthenticationMiddleware. It makes a call to LazyUser for every request. Is anybody aware of a workaround for this or would this involve creating a new AuthenticationMiddleware implementation and is it possible to configure a differen

Re: Where to create a Mezzanine project

2010-10-05 Thread Stephen McDonald
For anyone who comes along at a later point looking for an answer to this, it was provided on the mezzanine-users mailing list. http://groups.google.com/group/mezzanine-users/browse_thread/thread/c8b13c41a3168c94 Cheers, Steve On Oct 5, 7:37 am, Sithembewena Lloyd Dube wrote: > Hi Ken, > > Thou

Re: apache serving static files

2010-01-07 Thread Stephen Emslie
Looks like the regular expression of the AliasMatch excludes any '/' characters in the pattern, so is only going to match the last part of the path. Or roughly equivalent to doing path.split('/')[-1]. does the following work? AliasMatch /(.*\.js) /srv/www/ccm/htdocs/static/js/$1 On Thu, Jan

Re: Insert AUTOMATICALLY random string in username field

2010-01-14 Thread Stephen Emslie
How about a timestamp? import time name = str(time.time()) On Thu, Jan 14, 2010 at 2:45 PM, nameless wrote: > > > I want username field is automatically filled with this value: > > username = str(n); > > where n is a number of 10 digits ( autoincremented or random ). > > . > > I tried to ad

Content Transfer Encoding in Emails

2010-01-29 Thread Stephen Sundell
How would I get my content transfer encoding for emails sent through the django emails system to be 7bit? Stephen -- 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...@googlegrou

custom auth backend and ./manage.py test

2010-02-21 Thread Stephen Crosby
I'm working on a project that requires a custom auth backend which I've just written by subclassing contrib.auths.backends.ModelBackend and overriding the authenticate method so it takes a third parameter. It works nicely, but of course there are now lots of failed auth- related tests because of th

database permissions

2007-08-08 Thread Stephen Bunn
Perhaps I am wrong, or just going about this the wrong way, but I have been looking the Django documentation and asking around in #django and nobody can (or do not want to) give me a straight answer and the minimum database permissions Django needs to operate. So I am assuming that everybody is

Re: database permissions

2007-08-08 Thread Stephen Bunn
Kenneth Gonsalves wrote: > > On 08-Aug-07, at 6:51 PM, Stephen Bunn wrote: > > use whatever permissions you are happy with. As long as the user > under which django accesses the database, can do everything django > requires to be done, it's fine. I dont think this is

Re: database permissions

2007-08-08 Thread Stephen Bunn
Kenneth Gonsalves wrote: > > > you have to divide the tasks into those that you want to do through > django and those that you want to do outside django - django needs > permissions to do the first set. I dont think one can be clearer than > that. > Understandable. But for somebody new

django guru wanted

2007-08-29 Thread Stephen Phillips
i need a django guru to get our development team up and moving quickly 2-4 week contract - brisbane australia - will fly in / fly out - accommodation included - top dollar for the right guy major new australian news site mysql / lucene skills useful will consider applicants from usa / uk / au

Complex Lookups

2008-01-23 Thread Stephen Mizell
I've spent a little too much time on this, but before I decided to make a custom sql query, I wanted to see if anyone could provide any assistance. It is really a python question, and the problem I'm having is I'm not an expert yet with python. First, I have a list of dictionaries. [ {'id': 1,

Re: Complex Lookups

2008-01-23 Thread Stephen Mizell
> Try this: > > x = [ {'id': 1, 'title': 'test1'}, {'id': 2, 'test2'} ] > if x: > d = x[0] > q = Q(id=d['id']) & Q(title=d['title']) > for d in x[1:]: > q = q | (Q(id=d['id']) & Q(title=d['title'])) > query = MyModel.objects.filter(q) Hey, that make

Re: Complex Lookups

2008-01-23 Thread Stephen Mizell
> > But be sure to fix the typo in x first! > > >>> x = [ {'id': 1, 'title': 'test1'}, {'id': 2, 'test2'} ] > File "", line 1 > x = [ {'id': 1, 'title': 'test1'}, {'id': 2, 'test2'} ] > ^ > SyntaxError: invalid syntax > Ha, whoops. I

Requesting clarification on multiple subdomains and sites

2008-04-22 Thread Stephen Hood
Hi there, New to Django and Web server setups and need some help correlating the different pieces to match our needs..I've read thru the site framework, searched the threads here and found a collection of posts that are related to multi-site hosting etc .. but it's still quite a bit to digest o

Strange:Dev Web server crash with a python.core dump after Admin page being refreshed exactly 16 times

2008-05-31 Thread Stephen Cheng
ve no idea now. could somebody advise what the problem really is? Stephen --~--~-~--~~~---~--~~ 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@googlegroup

How to handle asian language?

2008-06-01 Thread Stephen Cheng
range(128) Exception Location: /home/stephen/python-lib/lib/python2.5/site- packages/django/utils/encoding.py in force_unicode, line 53 Python Executable: /home/stephen/python-lib/bin/python Python Version: 2.5.2 Python Path:[''/home/stephen/python-lib/lib/python2.5/s

Re: Strange:Dev Web server crash with a python.core dump after Admin page being refreshed exactly 16 times

2008-06-01 Thread Stephen Cheng
ave done or switched on during the process, it's just working fine now :) Hope this help some others. On Jun 2, 12:32 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sun, Jun 1, 2008 at 2:41 AM, Stephen Cheng <[EMAIL PROTECTED]> > wrote: > > > > > &

Filter "Dates"

2007-03-12 Thread Stephen Mizell
t; on month and year, we want new articles to post the first day of each month. This is why I don't use now(). Thanks! Stephen Mizell --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Filter "Dates"

2007-03-12 Thread Stephen Mizell
nks for your help Malcolm! Stephen Mizell --~--~-~--~~~---~--~~ 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 thi

Restricting Access to Users

2007-03-13 Thread Stephen Mizell
eally want to make a new app for each Weblog, but if that's the best way I'm down with it. If this has been posted somewhere, could someone kindly point me in that direction? Thanks for your help. Stephen --~--~-~--~~~---~--~~ You received this message

Re: Restricting Access to Users

2007-03-13 Thread Stephen Mizell
> You should go with a MiddleWare. Will this work for the Django admin as well? I don't think I specified in my post that I was wanting to restrict the access in the admin for certain users, but still make each Weblog public. Sorry for the confusion. --~--~-~--~~~-

Re: Restricting Access to Users

2007-03-13 Thread Stephen Mizell
he request.META['PATH_INFO'] for zones > where the middleware shouldn't do anything. > > On Mar 13, 4:47 pm, "Stephen Mizell" <[EMAIL PROTECTED]> wrote: > > > > You should go with a MiddleWare. > > > Will this work for the Django admin

urlpatterns for self referencing models

2007-03-22 Thread Stephen Newey
Hello I've built a simple photo album with album and photo models. URLs work simply using albumslug/photoslug. I'd like to be able to create albums within albums, so I've added a self referencing ForeignKey in the album model to achieve this. What I'm trying to work out now is the best approach

upload_to with username

2007-04-02 Thread Stephen Mizell
I'm wanting to have upload_to for my file so it uploads to a different directory for each user. This works when I use it with a newform, but when I try to use the Django admin, it puts None as the username (I want to base it on whatever username I select for "user"). I'm using some middleware fo

Re: upload_to with username

2007-04-03 Thread Stephen Mizell
> That line is executed exactly once, at the time the file is imported. So > it is not dynamic in any way. > > (I seem to be saying that at least every other day here. It's normal > Python behaviour, people. Please stop hoping it were otherwise!) Thanks for the help. I didn't call it dynamic, th

Help with creating queryset

2006-12-08 Thread Stephen Mizell
T['first_id']) elseif #... so on That just seems like the worst way to do it. Can I pass a dictionary to it somehow? What's the best way to do something like this? Hope this wasn't extremely confusing. Let me know if you need any other information from me. Thanks a lot, S

Re: Help with creating queryset

2006-12-08 Thread Stephen Mizell
27;, 'third_id']: > if request.GET[key]: > kwargs[key] = request.GET[key] > Resource.objects.filter(**kwargs) > > (i didnt test it, but thats the idea i guess ...) > > > That just seems like the worst way to do it. Can I pass a dictionary > > to it so

Error on File Upload

2006-12-21 Thread Stephen Mizell
We are using the admin for one our projects. In our model, we have: class Resource(models.Model): # ... filename = models.FileField(unique=True, upload_to="tick/resource", null=True, blank=True) We were just uploading an excel spreadsheet, which we've had no trouble doing in the past, an

Re: Error on File Upload

2006-12-21 Thread Stephen Mizell
filename = models.FileField(unique=True, upload_to="tick/resource", null=True, blank=True) I think I fixed the issue. I took out "unique=True" in the FileField and this allowed me to upload with no problems. Is this a bug or am I just using "unique" incorrectly? --~--~-~--~---

Convert From Restructured Text to HTML

2007-01-09 Thread Stephen Mizell
In our database we have a TextField that stores the body of our posts in RestructuredText. I've recently added TinyMCE to the Django Admin, so I'm wanting to convert this field from rst to plain old html. I wrote a little thing of code to do this with Django. def convert_post(request):

Re: Convert From Restructured Text to HTML

2007-01-10 Thread Stephen Mizell
So it seems the issue is with the restructured text. When using the restructured text filter on a template, it works just fine. When using restructured text in a view, it gives me tons of errors. Any ideas? --~--~-~--~~~---~--~~ You received this message becau

Re: Convert From Restructured Text to HTML

2007-01-10 Thread Stephen Mizell
Well, I gave up on the automation. I couldn't get restructuredtext to work right in my views, so I swallowed my pride and went into copy/paste mode. I simple did this: {% load markup %} {% for post in posts %} {{ post.id }}

Re: Convert From Restructured Text to HTML

2007-01-10 Thread Stephen Mizell
That's exactly what happened, but strange thing was it worked just fine using the filter. I even tried making some SQL queries to fix them for me, but that didn't work. Oh well, it's over now ;) On 1/10/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > On

Re: Many-To-Many Filtering

2006-03-06 Thread Stephen Newey
On 07/03/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > class Topic (models.Model ): > > parent = models.ForeignKey('self', null=True, blank=True, > > related_name='child') > > title = models.CharField(maxlength=128) > > description = models.TextField() > > > > clas

i want to use .db file in django application

2023-01-03 Thread Sam Stephen
How can i connect employee.db file to django? can any1 please help or share any tutorial -- 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...

Re: Django error while running

2023-03-21 Thread oba stephen
Can you share the content of your settings file? The installed apps in particular... On Tue, 21 Mar 2023, 16:05 Chandresh . T, wrote: > Recently I was running a git clone ( > https://github.com/divanov11/StudyBud.git) > > after doing required steps like migrations, etc. I started to run it by >

ANN: Mezzanine 1.0 released

2012-03-03 Thread Stephen McDonald
ridge.jupo.org or http://cartridge.rtfd.org/ Cartridge Git repo: https://github.com/stephenmcd/cartridge Cartridge Mercurial repo: https://bitbucket.org/stephenmcd/cartridge Cartridge issue tracker: https://github.com/stephenmcd/cartridge/issues Cheers, Steve -- Stephen McDonald http://jupo.org

Re: ANN: Mezzanine 1.0 released

2012-03-03 Thread Stephen McDonald
ver wrote: > Looks great. One thing... looks likehttp://mezzanine.jupo.org/is > running with Debug = True (tryhttp://mezzanine.jupo.org/asdf). Maybe > you're aware, just FYI. > > On Mar 3, 3:51 pm, Stephen McDonald wrote: > > > > > > > > > Hi Djangonauts,

Re: ANN: Mezzanine 1.0 released

2012-03-03 Thread Stephen McDonald
Thank you. I don't think the dependency will ever go away. It would be like trying to remove Django as a dependency of Mezzanine. Cartridge heavily leverages many aspects of Mezzanine. On Mar 4, 2:16 pm, "uno...@gmail.com" wrote: > Stephen, > > Amazing work with Mezz

Re: ANN: Mezzanine 1.0 released

2012-03-03 Thread Stephen McDonald
25%, as opposed to 95% of the features up front with weeks for implementing the remaining 5%. Cheers, Steve On Mar 4, 3:05 pm, Bolang wrote: > On 03/04/2012 06:51 AM, Stephen McDonald wrote: > > > > > > > > > > > In conjunction with the Mezzanine 1.0 release, I

Re: Admin user privilege elevation (how to prevent it)

2012-05-14 Thread Stephen McDonald
Stephen from Mezzanine here - thanks for the thorough response Russ. The cleansing process we go through is very rigorous - we're leaning on the shoulders of tools that have solved this problem (in our case the bleach library). It uses a white-list of tags and attributes, so all those tricky

ANN: Mezzanine 1.1 and Cartridge 0.5 released

2012-06-03 Thread Stephen McDonald
e tracker: https://github.com/stephenmcd/cartridge/issues Cheers, Steve -- Stephen McDonald http://jupo.org -- 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 unsubs

ANN: django-overextends

2012-06-09 Thread Stephen McDonald
django/ Cheers, Steve -- Stephen McDonald http://jupo.org -- 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

ANN: Mezzanine 1.2 and Cartridge 0.6 released!

2012-08-04 Thread Stephen McDonald
[6] http://mezzanine.jupo.org/docs/colophon.html#change-log [7] http://cartridge.jupo.org/colophon.html#change-log -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Choosing a Django-based CMS

2012-08-05 Thread Stephen McDonald
On Aug 5, 5:30 pm, Sean O'Brian wrote: > Hi! > I'm using Django CMS for a few of weeks and I like it. But there's one > problem, which I already ran into: I can't extend Page model easily. > I found one tutorial, > but this not seem to be

Re: Django Interview Questions

2012-09-04 Thread Stephen Anto
Hi Guys, I have updated Django latest interview questions and answers. It may cover all technical requirements of the interview. Vist http://www.f2finterview.com/web/Django/ for latest Django interview questions and answers On Monday, November 2, 2009

Re: Django deployment questions

2012-09-04 Thread Stephen Anto
Hi Guys, For Django related questions and answers Pls visit http://www.f2finterview.com/web/Django/ On Sunday, September 2, 2012 10:37:03 AM UTC+5:30, Mike wrote: > > I just started to use Fabric to automate my deployments to my staging > server. (and w

Re: Django Interview Questions

2012-09-06 Thread Stephen Anto
>>> >>> apt-get install python-pip python-virtualenv virtualenvwrapper >>> cd code >>> mkvirtualenv some-django-project >>> pip install django >>> django-admin startproject somedjangoproject >>> cd somedjangoproject >>> python manage.p

Re: Can't Syncdb

2012-09-09 Thread Stephen Anto
roup, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Thanks & Regards Stephen S Web

Re: I can't install django on my mac. I'm not sure why. Details inside.

2012-09-09 Thread Stephen Anto
s.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Thanks & Regards Stephen S Website: www.f2finterview.com Blog: blog.f

Re: Static files not loading when debug is false

2012-09-09 Thread Stephen Anto
nks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/fWCsL9PUI1EJ. > To post to this group, send email to dja

Re: Django Interview Questions

2012-09-11 Thread Stephen Anto
UTC+5:30, Stephen Anto wrote: > > Hi Guys, > > The new modified questions and answers will be updated soon > > Thanks for posting your valuable feedback. > > On Wednesday, September 5, 2012 11:23:48 PM UTC+5:30, Amyth wrote: >> >> after reading this gui

  1   2   3   4   >