Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mike Ramirez
On Thursday, April 14, 2011 12:45:33 pm you wrote: > Wait aren't we programmers or not? This should be something you can do in a > couple days... > > Mike My mistake here is nameing an actual time frame that was taken litteral by a few folks. I forget how unimaginitve a lot you are. Sorry. T

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mike Ramirez
On Thursday, April 14, 2011 01:27:51 pm Javier Guerra Giraldez wrote: > On Thu, Apr 14, 2011 at 3:20 PM, Mike Ramirez wrote: > > A good programmer with experience, should have a few libraries around > > from other projects that add the polish and need minor tweaking. > >

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mike Ramirez
On Thursday, April 14, 2011 12:57:17 pm Daniel Roseman wrote: > On Thursday, April 14, 2011 8:45:33 PM UTC+1, Mike Ramirez wrote: > > Wait aren't we programmers or not? This should be something you can do in > > a > > > > couple days... > > > > Mik

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mike Ramirez
On Thursday, April 14, 2011 12:37:33 pm Mengu wrote: > doesn't pinax provide something like this? > > On 14 Nisan, 21:44, AJ wrote: > > >>Here's a fun thought, why can't a custom blog like enty and the > > >>comments framework be utilized to do this? > > > > Precisely but I was hoping I'd get s

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mike Ramirez
On Tuesday, April 12, 2011 02:17:22 pm AJ wrote: > Isn't there any app with just the commenting part? I mean the answer and > comments on those answers part only. Here's a fun thought, why can't a custom blog like enty and the comments framework be utilized to do this? Mike -- Real computer s

Re: framework web comparison

2011-04-07 Thread Mike Ramirez
On Thursday, April 07, 2011 07:52:36 pm Kenneth Gonsalves wrote: > On Thu, 2011-04-07 at 19:35 -0700, Mike Ramirez wrote: > > > very true - in all fields. Currently we are in a huge controversy > > > because the guys who rated our golf course messed it up because they > &

Re: framework web comparison

2011-04-07 Thread Mike Ramirez
On Thursday, April 07, 2011 07:24:38 pm Kenneth Gonsalves wrote: > On Thu, 2011-04-07 at 19:12 -0700, Mike Ramirez wrote: > > > from what I gather the point here is he is doing some sort of > > > > research > > > > > paper on the comparative merits of the

Re: framework web comparison

2011-04-07 Thread Mike Ramirez
On Thursday, April 07, 2011 07:05:34 pm Kenneth Gonsalves wrote: > On Thu, 2011-04-07 at 11:48 -0700, Mike Ramirez wrote: > > Ultimately, this question is best answered by yourself, by using, > > testing, > > playing with each of the tools you want to evaluate and find

Re: framework web comparison

2011-04-07 Thread Mike Ramirez
On Thursday, April 07, 2011 11:35:20 am refreegrata wrote: > for example, for you, Why I must to choose Django instead of Ruby or > Zend? or something like this. > For me it's about the language each uses. Ruby, PHP, while very popular, are not languages I like to write in or use or even recomm

Re: wan to use django's default theme

2011-04-06 Thread Mike Ramirez
On Wednesday, April 06, 2011 12:57:17 pm GOUTAM KUMAR RANA wrote: > Sorry for that. Actually I was asking how to use the default theme as in > django's admin in my custom pages file locations are here: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/media templates in ano

Re: wan to use django's default theme

2011-04-06 Thread Mike Ramirez
On Wednesday, April 06, 2011 12:41:59 pm GOUTAM KUMAR RANA wrote: > wan to use django's default theme in all my custom pages or applications Asking for permission or the location of the files and then which theme, site or admin panel. It's hard to know what's in your head without some real deta

Re: Rendering read-only forms?

2011-04-06 Thread Mike Ramirez
On Wednesday, April 06, 2011 12:23:56 pm Roy Smith wrote: > I want to display an object in exactly the same style as an existing > template that looks like this: > > > {% csrf_token %} > > {{form}} > > > > > except that I want all the fields to be read-only. It's easy enough > to not includ

Re: E-Commerce - Payment

2011-04-05 Thread Mike Ramirez
On Tuesday, April 05, 2011 11:25:12 pm Isaac XxX wrote: > Hi folks, > > Paypal seems to be clear at how to manage, but Use a gateway service, much easier and less costly. >I don't know really how to manage credit card data:? can be stored? Yes but the infrastructure is important on how all

Re: I want to get facebook uid to my python function.

2011-04-05 Thread Mike Ramirez
On Tuesday, April 05, 2011 08:11:49 pm Nge wrote: > Dear All ! > > I am creating Django user login page via facebook. > Now I am using the facebook JavaScript SDK and facebook login button. > I can login and get the facebook user's uid. I want to compare this > facebook uid with my database on pyt

Re: [Suspected Spam] Django app for data management and visualization

2011-04-05 Thread Mike Ramirez
On Tuesday, April 05, 2011 07:39:57 am Sells, Fred wrote: > You can get all the files in your > plugins dir and import them using the python function (forgot it's name, > don't use it) or just eval ('import %s' % filename) crude but works for > older python > imp[1] and implib, knee.py[2] is th

Re: Extending django-admin.py startproject/manage.py startapp: a good layout for reusable apps

2011-04-05 Thread Mike Ramirez
On Tuesday, April 05, 2011 02:12:35 am Thomas Weholt wrote: >and useful outside django so I`ll keep my eye on that as well. > > I find that generating all the framework code and modify it a > little to be 100% complete is quicker than doing it all in the > shell/command line. Just a minor disagre

Re: WxPython and django

2011-04-01 Thread Mike Ramirez
On Thursday, March 31, 2011 07:28:15 pm you wrote: > You'll need to rewrite the gui code. > You should be able to use the basic html, if it's html and not xml. But you'll have to strip all calls to wx to make it work. Mike -- The final delusion is the belief that one has lost all delusions.

Re: WxPython and django

2011-03-31 Thread Mike Ramirez
On Thursday, March 31, 2011 06:34:42 pm Aref Nammari wrote: > Hi Calvin, I think that there is some misunderstanding about what my > question was about. Let me try to clarify. Wxpython is a module which is > run just like any other python module. It is great for rendering forms, > widgets, frames

Re: WxPython and django

2011-03-30 Thread Mike Ramirez
On Wednesday, March 30, 2011 07:24:24 pm Calvin Spealman wrote: > They are completely unrelated. WX is a library for working with > desktop-based UI toolkits, and Django is a framework for producing and > delivering HTML/CSS/JS web content to a browser. > > On Wed, Mar 30, 2011 at 10:03 PM, Aref

Re: Is Django "leaking memory"?

2011-03-30 Thread Mike Ramirez
On Wednesday, March 30, 2011 06:48:15 pm dlamotte wrote: > I've documented what is going on here: > > http://stackoverflow.com/questions/5494178/why-doesnt-memory-get-released-t > o-system-after-large-queries-or-series-of-queri > > Basically, the memory doesn't "grow continuously" but it isn't >

Re: Force an ajax window to close

2011-03-30 Thread Mike Ramirez
On Wednesday, March 30, 2011 06:36:56 pm CrabbyPete wrote: > I have a ajax form using smoothbox and mootools to show a form. > Smoothbox has a button to close the box, but I want to force it closed > once the submit button is pressed and the form validated. Is there a > way django can close a brows

Re: staticfile app question

2011-03-30 Thread Mike Ramirez
On Wednesday, March 30, 2011 05:34:05 pm Jason Culverhouse wrote: Just to add, if you have a seperate server and/or non-normal directory layout for for images and css files, this method doesn't work that well either. Again I'm not saying your suggestion is not a good one, it's just not one tha

Re: staticfile app question

2011-03-30 Thread Mike Ramirez
On Wednesday, March 30, 2011 05:34:05 pm Jason Culverhouse wrote: I don't think you don't grok me, I'm not arguing they aren't allowed and I do know how they work. Your suggestion has been thought about, tossed around and rejected, way before this conversation took place. Mike -- Of all forms

Re: staticfile app question

2011-03-30 Thread Mike Ramirez
On Wednesday, March 30, 2011 05:01:08 pm Jason Culverhouse wrote: > On Mar 30, 2011, at 4:50 PM, Mike Ramirez wrote: > > On Wednesday, March 30, 2011 04:20:32 pm Shawn Milochik wrote: > >> I have the exact same problem. I hope there is a solution, because > >> good s

Re: staticfile app question

2011-03-30 Thread Mike Ramirez
On Wednesday, March 30, 2011 04:58:42 pm Sells, Fred wrote: > This may be using a canon to swat a fly, but... > > I had a project some time ago where I needed a very repetitive > java/swing UI. I ended up creating python classes that had a __repr__ > method that generated the java source code. T

Re: staticfile app question

2011-03-30 Thread Mike Ramirez
On Wednesday, March 30, 2011 04:20:32 pm Shawn Milochik wrote: > I have the exact same problem. I hope there is a solution, because > good site design often results in image references in the CSS. The best one I've come up with and it's far from 'best' is to run a command that edits css template

Re: Git repository with all tutorial code.

2011-03-29 Thread Mike Ramirez
On Tuesday, March 29, 2011 10:34:28 pm you wrote: > Though having the code in a public repo might encourage some to copy and > pasta, or not right code at all and just look at how it all goes together > s/right/write/ Mike -- Don't read everything you believe. -- You received this message be

Re: Git repository with all tutorial code.

2011-03-29 Thread Mike Ramirez
On Tuesday, March 29, 2011 03:08:32 pm Lachlan Musicman wrote: > On Wed, Mar 30, 2011 at 07:05, Andreas Neustifter > > wrote: > > Using this as starting point for new users of the tutorial? Is there > > any downside to having this in a repository? > > Well, it's not *evil* if that's what you are

Re: How to hire a freelance Django developer

2011-03-29 Thread Mike Ramirez
On Tuesday, March 29, 2011 05:04:49 pm Micah Carrick wrote: > Hey folks, > > Let me start by saying: Please don't email me your resume--this is not a > job listing. > > That being said, I do need to hire python/django developers and system > admins from time to time to help me out with projects o

Re: Accessing values in formset loops

2011-03-29 Thread Mike Ramirez
On Tuesday, March 29, 2011 12:50:09 pm Nick wrote: > I guess the bigger question is, can I access the values of the fields > without spitting out a form field? > form.field.value? After the form is bound, when you access the field, it's turned into a bound field[1] . This wrapper adds a few ext

Re: Looking for IDE + FTP

2011-03-29 Thread Mike Ramirez
On Tuesday, March 29, 2011 08:34:51 am Cal Leeming [Simplicity Media Ltd] wrote: > Hmm, Aptana Studio looks pretty hot.. Might try it out! ty! > Beware of titanium, it requires a net connection and you to be connected to their systems to use it's functionality. Had to logon to the local app to

Re: develop to product

2011-03-29 Thread Mike Ramirez
On Tuesday, March 29, 2011 07:48:16 am yongzhen zhang wrote: > [Tue Mar 29 17:06:07 2011] [error] [client 62.237.153.123] File "/home/ > yongzhen/workspace/www/iStore/apache/django.wsgi", line 5, in > [Tue Mar 29 17:06:07 2011] [error] [client 62.237.153.123] > wsgi_dir=os.path.abspath(os.path.di

Re: Two way many-to-many relationships

2011-03-29 Thread Mike Ramirez
On Monday, March 28, 2011 02:32:52 pm Dilan wrote: > Thanks Mike ! you're welcome > That was a really helpful page that I missed in Doc. In this > particular case 1 solves 2. > Nice > > In python you can't forward declare outside of the module the object is > > in. I also want to clarify that

Re: How to create message box window using Django

2011-03-29 Thread Mike Ramirez
On Tuesday, March 29, 2011 02:13:40 am django beginner wrote: > Hi all, > > Could someone please tell me how to create a Message Box using Django? > > Thanks in advance. This falls under the domain of javascript/css/html, django itself has no dialog boxes of any kind, it only has simple form w

Re: Two way many-to-many relationships

2011-03-27 Thread Mike Ramirez
On Sunday, March 27, 2011 02:32:15 pm Dilan wrote: > Hi All, > > I'm working on a model similar to > http://docs.djangoproject.com/en/1.3/topics/db/models/#extra-fields-on-many > -to-many-relationships . > > Say, I need to add the field, groups = models.ManyToManyField(Group, > through='Membershi

Re: how to parse string in django

2011-03-27 Thread Mike Ramirez
On Sunday, March 27, 2011 07:38:46 pm django beginner wrote: > hi django experts, > > how do I strip the following string in python (Charfield format) > > 14:00 > 3:00 > > wherein I could compare the results - convert in integer: > > if 14 > 3 . . . > > thanks in advance! a = "14:00" b = "3:0

Re: Tutorial Problems

2011-03-25 Thread Mike Ramirez
On Friday, March 25, 2011 08:03:30 pm ruler501 wrote: > I have been going through the tutorial and this is the code I > currently have: > http://www.omnimaga.org/index.php?action=dlattach;topic=7310.0;attach=6834 > I have gotten to the 404 part in part 3 before deciding to post here. > Almost every

Re: How to run a file.py in the django environement

2011-03-25 Thread Mike Ramirez
On Friday, March 25, 2011 06:06:39 pm José António Silva wrote: > Is there any command like > python manage.py shell filename.py (I know this particular command > isn't allowed, but is there any other?) > > thanks, > JA how about turning filename.py into a django command? http://docs.djangoproj

Re: Setting system path for django

2011-03-25 Thread Mike Ramirez
On Friday, March 25, 2011 05:46:54 pm Tim Johnson wrote: > > > > It really sounds like when you install python, you're using `python > > setup.py` > That's my bad. that should read "install django". The only reason python should install to django /usr/lib/python2.5/site-packages is if you're us

Re: Setting system path for django

2011-03-25 Thread Mike Ramirez
On Friday, March 25, 2011 02:56:53 pm Tim Johnson wrote: > I've set up python 2.7 on slax. > I've also set up django 1.1 on slax. Slax does things a little > differently, so it appears. django is installed at > /usr/lib/python2.5/site-packages/django > > python 2.7 does not know where to find djan

Re: extend User Model for custom fields

2011-03-25 Thread Mike Ramirez
On Friday, March 25, 2011 01:16:51 pm Nick Serra wrote: > Andre's solution is out of date. Calvin is correct, use the user > profile model that is built into django auth. OP, the link you found > is correct. > > > > > http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-m... > > >

Re: images in a template

2011-03-19 Thread Mike Ramirez
On Saturday, March 19, 2011 05:37:04 am Vladimir wrote: > url((r'^site_media/(?P.*)$', 'django.views.static.serve', > {'document_root': settings.STATIC_DOC_ROOT}), unmatched parentheses `url((` should be `url(` Mike -- Program load too heavy for processor to lift. -- You receive

Re: images in a template

2011-03-19 Thread Mike Ramirez
On Saturday, March 19, 2011 02:44:41 am Vladimir wrote: > It does not work. If I call index.html which contains > #title h1{ background-image: url(galion.gif); background-position: > left top; background-repeat: no-repeat; } > directly in web browser then image is displayed. > If I call it: > h

Re: images in a template

2011-03-18 Thread Mike Ramirez
On Friday, March 18, 2011 11:12:52 pm Vladimir wrote: > Thank You very much! > I found one more mistake, I need to replace in views.py: > from django.template import loader, Context > with > from django.template import RequestContext > > Now there is no syntax mistake but there is no image. How ma

Re: images in a template

2011-03-18 Thread Mike Ramirez
On Friday, March 18, 2011 10:39:18 pm Vladimir wrote: > return > render_to_response('index.html',,context_instance=RequestContext(request)) > > Such version lead to an error message: SyntaxError at/index/ , invalid > syntax (views.py, line 5) > What are my mistakes please? xtra comma in rend

Re: Defining global names

2011-03-18 Thread Mike Ramirez
On Friday, March 18, 2011 07:03:25 am hank23 wrote: > I'm currently working on a new project which will have multiple > applications built within it, and which will all be using the same > database. I'd like to setup a global name for each application so I > can use them to format audit fields for

Re: django-admin-py?

2011-03-17 Thread Mike Ramirez
On Thursday, March 17, 2011 03:16:44 pm Sithembewena Lloyd Dube wrote: > Hello Glenn, > > What operating system are you on? You seem to have tried to use manage.py > correctly, but I suspect this has to do with your Django installation > before you even tried to create a project. > > On Thu, Mar

Tests with test specific models

2011-03-14 Thread Mike Ramirez
Example: I have an app that uses ContentType and I want to test that against an arbitrary model to make sure that the usage of ContentType is correct. Ex: In my app.models I have: class Rating(models.Model): total = models.DecimalField(default=0, decimal_places=2, max_digits=8) score =

Re: request in model

2011-03-14 Thread Mike Ramirez
On Monday, March 14, 2011 07:45:23 am Igor Nemilentsev wrote: > I am new in Django. > I am looking for a solution for my problem. > I want to have a base model class > inheriting all other model classes from that class. > In the base model class I want to check > some permissions for users. > So, n

Re: Django projects, apps, and git repos

2011-03-14 Thread Mike Ramirez
On Monday, March 14, 2011 08:22:23 am br wrote: > Just curious if there is a best way to manage this both from a project- > management and a git perspective. > > Thanks > > br Before I begin, 'best' is completely subjective and I think all this comes down to what works for you and the situation

Re: test cannot find assertContains

2011-03-13 Thread Mike Ramirez
On Sunday, March 13, 2011 10:58:10 pm Kenneth Gonsalves wrote: > On Sun, 2011-03-13 at 22:40 -0700, Mike Ramirez wrote: > > > I know it is there - but it is half way down the page. My point is > > > > that > > > > > it should be at the top of the page. For

Re: test cannot find assertContains

2011-03-13 Thread Mike Ramirez
On Sunday, March 13, 2011 10:40:51 pm you wrote: > With this all in mind, I think they do enough to say use 'django.testing', > without having it specifically marked at the start. > > But it could possibly benefit from being two pages, one an "overview" and > one page for "django.testing" > > >

Re: test cannot find assertContains

2011-03-13 Thread Mike Ramirez
On Sunday, March 13, 2011 09:58:18 pm Kenneth Gonsalves wrote: > On Sat, 2011-03-12 at 00:12 -0800, Mike Ramirez wrote: > > On Friday, March 11, 2011 11:37:38 pm Kenneth Gonsalves wrote: > > > and all is well. I think the dev docs need to be clearer on this > > > >

Re: test cannot find assertContains

2011-03-12 Thread Mike Ramirez
On Friday, March 11, 2011 11:37:38 pm Kenneth Gonsalves wrote: > and all is well. I think the dev docs need to be clearer on this point > and mention this at the outset. After all they *are* dev docs. http://docs.djangoproject.com/en/1.2/topics/testing/#testcase Mike -- Would that my hand were

Re: test cannot find assertContains

2011-03-11 Thread Mike Ramirez
On Friday, March 11, 2011 11:21:02 pm you wrote: > The problem here is that assertContains is not part of unittest/unittest2. > > It's defined in TransactionTestCase in django.test, which extends > unittest2.TestCase and adds in assertContains, assertNotContains, > assetFormError, basically django

Re: test cannot find assertContains

2011-03-11 Thread Mike Ramirez
On Friday, March 11, 2011 11:11:21 pm Kenneth Gonsalves wrote: > On Fri, 2011-03-11 at 23:04 -0800, Mike Ramirez wrote: > > > from django.utils import unittest > > > > from django.test import TestCase > > > > the stuff in utils.unittest is unittest2 s

Re: test cannot find assertContains

2011-03-11 Thread Mike Ramirez
On Friday, March 11, 2011 11:04:39 pm Mike Ramirez wrote: > assertContains is a django specific test and located in test.TestCase with > the others (you can find TransactionTestCase in there also). > I should also add, TransactionTestCase is the base for TestCase and TestCase is reall

Re: test cannot find assertContains

2011-03-11 Thread Mike Ramirez
On Friday, March 11, 2011 10:19:27 pm Kenneth Gonsalves wrote: > hi, > > I am trying to run a test using assertContains, but get this error: > > AttributeError: 'SourceTestCase' object has no attribute > 'assertContains' > > my code: > > from django.utils import unittest from django.test impor

Re: Packaging and development workflow for decoupled apps.

2011-03-11 Thread Mike Ramirez
On Friday, March 11, 2011 07:52:22 am DaleB wrote: > I guess i wasn't clear enough. I am not so much concerned with when to > use tags and when to use branches. > I am still looking for a smooth development workflow. > I created a libs-dir which i put on my python path an put my different > apps in

Re: Packaging and development workflow for decoupled apps.

2011-03-11 Thread Mike Ramirez
On Friday, March 11, 2011 12:41:52 am DaleB wrote: > One last point. > Now, how do i deal best with different versions/branches of my app? Do > you just switch branches while developing or do you use pip in project > env to refer and switch to different tags/branches in your sourcecode. > The firs

Re: Packaging and development workflow for decoupled apps.

2011-03-10 Thread Mike Ramirez
On Thursday, March 10, 2011 09:57:29 am DaleB wrote: > I see that this is really great for the distribution of an app. > But what about development and "continuous packaging"? > I mean, my project consists of more than five apps. One side of me > would rather turn them all into installable package

Re: Main Application's settings.py floating multiple systems

2011-03-07 Thread Mike Ramirez
On Monday, March 07, 2011 01:20:47 pm Cal Leeming [Simplicity Media Ltd] wrote: > I wouldn't recommend using this method, I did this previously for several > months, and quickly switched to an alternative (which I mentioned in my > previous post). > > Generally speaking, keeping anything outside

Re: Django view without app

2011-03-06 Thread Mike Ramirez
On Sunday, March 06, 2011 10:07:07 am schwarzerrabe wrote: > Hi, > > I just recently started using Django to realize a small project, so > I'm really just a beginner. > > My question is: Where do I put a view that doesn't need an own app? > > My project is a library of DVDs, Books and other medi

Re: foreign key search in admin

2011-03-05 Thread Mike Ramirez
On Saturday, March 05, 2011 07:19:23 am Bobby Roberts wrote: > hi all... i'm banging my head against a wall here. > > consider this model > > class mymodel(models.Model): > id = models.AutoField (primary_key=True) > Barcode = models.IntegerField(unique = True, blank=False) >

Re: Using markdown within admin interface

2011-03-04 Thread Mike Ramirez
On Wednesday, February 23, 2011 06:36:46 am Jonas Geiregat wrote: > Hello, > > I love markdown for writing content on websites. I use it almost all the > time when I'm working with django. > > The only issue I hate is that the default django admin interface gives you > a standard textfield. There

Re: problem with url

2011-03-03 Thread Mike Ramirez
On Thursday, March 03, 2011 08:00:45 am luca72 wrote: > hello i have define this in the url: > (r'^admin/', include(admin.site.urls)), > (r'^accounts/login/$', 'django.contrib.auth.views.login'), > (r'^mostro_prima', 'prova.test_sito.views.mostro_prima'), > (r'$', 'prova.test_sito.views

Re: field choices() as queryset?

2011-02-24 Thread Mike Ramirez
On Thursday, February 24, 2011 05:15:09 am Tom Evans wrote: > Cargo cult programming is bad. > > Cheers > > Tom Not going to really argue the point, it's valid, but it could be based on habits taught by others, mentors... Mike -- Never, ever lie to someone you love unless you're absolutely

Re: field choices() as queryset?

2011-02-24 Thread Mike Ramirez
On Thursday, February 24, 2011 05:00:23 am galago wrote: > I made it that way but i get empty select list > > class ProvinceForm(ModelForm): > def __init__(self, *args, **kwargs): > super(ProvinceForm, self).__init__(*args, **kwargs) > user_provinces = > UserProvince.objects.se

Re: field choices() as queryset?

2011-02-24 Thread Mike Ramirez
On Thursday, February 24, 2011 04:21:46 am galago wrote: > Thanks, that's the way I'll do it:) > But now I have 1 more problem. In ModelForm I want to get some data about > user from DB. I nedd to filter user provinces. How canI call the user id > in my query? I pass request.user as form instance

Re: field choices() as queryset?

2011-02-24 Thread Mike Ramirez
On Thursday, February 24, 2011 03:53:03 am galago wrote: > I need to make a form, which have 1 select and 1 text input. Select must be > taken from database. > model looks like this: > class Province(models.Model): > name = models.CharField(max_length=30) > slug = models.SlugField(max_lengt

Re: pgadmin vs schema migration

2011-02-24 Thread Mike Ramirez
On Thursday, February 24, 2011 03:48:18 am ggavy wrote: > Hello everyone, > if I have a live app running off a postgres db (containing data) > and I want to make reasonably simple schema (and possibly data > content) changes, are there any dangers in just using pgadmin (e.g > adding a column) a

Re: Problem with unicode in form posts

2011-02-24 Thread Mike Ramirez
On Thursday, February 24, 2011 01:32:11 am Tom Evans wrote: > On Wed, Feb 23, 2011 at 9:17 PM, Lee Hinde wrote: > > Except, now the data that's in the database for the username field > > goes from looking like this: > > leehinde > > to this > > (u'leehinde',) > > > > I'd like it to be 'leehinde'

Re: Collaborative text editor with Django

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 08:56:50 pm Anoop Thomas Mathew wrote: > Hi Mike, > I think you miss read me. I mean an application to put in the website, not > for coding on desktop. A collaborative text editor within the site, some > pre-built django apps. > > Any ideas? > Sorry, in that case n

Re: Is there an official Django forum besides this mailing list?

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 08:14:17 pm Kevin wrote: > Hello everyone, > > I checked the Community link on the Django website and am unable to > locate a web-based forum, but only this mailing list. There is a few > Django made forum apps which could be used for this purpose, and > integrat

Re: Cool and useful development commands :-)

2011-02-23 Thread Mike Ramirez
just pushing this here for dave to see, I forget that when emails are addressed to me and the list, reply sends to the user and do not hit "L" to reply to the list. @dave: This is the idea we came up with. On Wednesday, February 23, 2011 05:29:55 am you wrote: > Maybe you could write a filter "

Re: label_tag in queryset

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 04:16:51 pm Greg Corey wrote: > Thanks for your reply. One question. > > > make sure to reference the model field you want as the label if > > 'Requester' isn't it. > > Not sure what you mean by this. Do you just mean manually change > 'Requester' to whatever I wan

Re: Problem with unicode in form posts

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 01:17:22 pm Lee Hinde wrote: > I'd like it to be 'leehinde' again > so, clearly objects.create is more clever than my pure post. But I'm > not sure where in the food chain I should be interceding.. I'm not sure what's going on, but I would start with data.get() and

Re: Problems with Admin site displaying table records

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 11:56:07 am wilbur wrote: > Hello, > > The table I am querying is set to return a fieldname that is defined > as varchar... ex. > > class Sample(models.Model): > sample_name = models.CharField(max_length=100) > location = models.CharField(max_length=100,bla

Re: label_tag in queryset

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 02:15:40 pm geraldcor wrote: > Hello all, > > When rendering a list of data for a particular model instance, I am > wondering how to access the label_tag attribute for a field when not > using a form. > > In my view I get a model instance and pass the object in my

Re: Problems with permissions in the admin panel.

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 02:56:52 pm Adam Tonks wrote: > Hello, > > I'm having some fustrating problems with setting permissions for a > user within the django administration panel. I create a new user, set > it as staff, and assign it permissions. The problem is, when I login > as them,

Re: Using markdown within admin interface

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 07:10:58 am Tom Evans wrote: > On Wed, Feb 23, 2011 at 2:48 PM, Mike Ramirez wrote: > > tried tinymce[1]? Here is the best (IMO) way to do it.[2] Others have > > editted the admin templates to intregrate tinymce into the admin, but I > >

Re: Using markdown within admin interface

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 06:36:46 am Jonas Geiregat wrote: > Hello, > > I love markdown for writing content on websites. I use it almost all the > time when I'm working with django. > > The only issue I hate is that the default django admin interface gives you > a standard textfield. There

Re: Querysets: returning a single item with the greatest id.

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 05:04:29 am Tom Evans wrote: > On Wed, Feb 23, 2011 at 12:57 PM, Sithembewena Lloyd Dube > > wrote: > > Hi everyone, > > > > How would one fetch a single item with the largest id (or most recent > > date of creation) via the database API? > > > > -- > > Regards,

Re: What's the difference between MEDIA_ROOT and STATIC_ROOT?

2011-02-23 Thread Mike Ramirez
On Tuesday, February 22, 2011 11:04:52 pm King wrote: > In the Note under this section > http://docs.djangoproject.com/en/dev/howto/static-files/#s-using-django-con > trib-staticfiles , it mentions that "In previous versions of Django, it was > common to place static assets in MEDIA_ROOT along with

Re: Where can I find the admin/base_site.html

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 01:06:40 am DJ Chung wrote: > I am going through the tutorial on Djangoproject.com. I'm trying to > work on templates and I don't know where to find admin/base_site.html > > Where's the actual code I can copy and paste? http://code.djangoproject.com/browser/django

Re: Collaborative text editor with Django

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 12:32:55 am Anoop Thomas Mathew wrote: > Hi, > > Is there any collaborative text editing application available for django. > Has anybody tried with etherpad(www.etherpad.org) along with django? > > Please reply, > Thanks in advance, > Anoop > > atm > ___ > Life is

Re: scripted login to django

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 03:28:31 am Robin Becker wrote: > I want to automate a remote django view which requires a login with a > python script, but I am having difficulty in deciding how to make django > accept the various cookies. Is there example code somewhere which shows > how this sho

Re: How to skip some translation in trans block?

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 02:22:47 am galago wrote: > I need to skip translating some content from the string in template. > I want to make something like this: > > I pass the tag variable to the temaplte. Then I want to make a string: Tag: > tag_variable. I need it to be in trans block, but

Re: Cool and useful development commands :-)

2011-02-23 Thread Mike Ramirez
On Tuesday, February 22, 2011 08:46:34 am Simone Federici wrote: > http://www.os4d.org/djangodevtools > Your feedback is very welcome > > Simone Also, this just hit me as I hit send, but what do you think of adding something that helps scan templates for obvious XSS mistakes as per this request

Re: Cool and useful development commands :-)

2011-02-23 Thread Mike Ramirez
On Tuesday, February 22, 2011 08:46:34 am Simone Federici wrote: > http://www.os4d.org/djangodevtools > Your feedback is very welcome > > Simone Doesn't xsyncdb mimic the way syncdb already works or is there some difference that isn't apparent from the description? Also, why not GZip instead o

Re: Problem in returning the value.

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 12:10:14 am cuteangel wrote: > this is the class from models.py- > class NatPar(models.Model): > @staticmethod > def handle_review(self): > try: > grammar=nltk.parse_cfg(""" > S->VP NP > PP->P N > NP->De

Re: Authorization of static content

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 12:03:12 am Joakim Hove wrote: > Hello, > Any suggestions of how to combine django based authorization with > serving of static content? I am the owner of the box in question and > can modify the apache setup way beyond my competence. > > Regards - Joakim Hove Yo

Re: Question(s) Concerning Securing Pages From Bots?

2011-02-22 Thread Mike Ramirez
On Tuesday, February 22, 2011 10:03:41 pm Kenneth Gonsalves wrote: > On Tue, 2011-02-22 at 18:23 +, Cal Leeming [Simplicity Media Ltd] > > wrote: > > > +captcha>Not > > busting your balls but, please at least make an effort to

Re: ViewDoesNotExist Error

2011-02-22 Thread Mike Ramirez
On Tuesday, February 22, 2011 08:24:43 pm ravi krishna wrote: > from task.employeeDetails import emp_profile I did see* not where emp_profile comes from. Mike (sorry). -- We are sorry. We cannot complete your call as dialed. Please check the number and dial again or ask your operator for a

Re: ViewDoesNotExist Error

2011-02-22 Thread Mike Ramirez
On Tuesday, February 22, 2011 08:24:43 pm ravi krishna wrote: > from task.employeeDetails import emp_profile I did not where emp_profile comes from. Mike -- We are sorry. We cannot complete your call as dialed. Please check the number and dial again or ask your operator for assistance. This

Re: Form/Element Javascript Coding

2011-02-21 Thread Mike Ramirez
On Monday, February 21, 2011 07:53:03 am hank23 wrote: > I have an html page which I'm trying to code. On it I have a form with > multiple html controls/elements. In order to reference the elements on > the page can I reference them directly with a > document.getElementBy('') or do I need to refere

Re: Just going to point this out ...

2011-02-18 Thread Mike Ramirez
On Friday, February 18, 2011 06:07:57 am dave b wrote: > On 19 February 2011 00:57, Shawn Milochik wrote: > > I also didn't see the part where they state that you shouldn't put your > > database login information in a template. That's probably because Django > > is designed to allow Web developer

Re: How to reinstall Python Interpreters?

2011-02-17 Thread Mike Ramirez
On Thursday, February 17, 2011 04:48:31 pm LJ wrote: > I installed the latest version of dajaxice, but I am still getting > Unresolved import errors. > My guess is that I need to remove and reinstall the Python > Interpreters. > Is there a some documentation somewhere that explains how to reinstall

Re: site styling works with development server but not apache

2011-02-17 Thread Mike Ramirez
On Thursday, February 17, 2011 09:23:47 am you wrote: > I'm still having trouble. My directory structure is: > > /usr/local/www/static > > +- contrib/admin/media -- symlink to django/contrib/admin/media > > +- media/admin/base_site.html -- modified version of base_site.html > > I've tried every

Re: site styling works with development server but not apache

2011-02-17 Thread Mike Ramirez
On Thursday, February 17, 2011 07:14:16 am ashish wrote: > Hi all. I followed the tutorial to setup a basic django site and run > it with the development server. Everything looks fine. Then, I > configured to use apache. Everything seems to work except the styling. > The login and admin pages have

  1   2   3   >