Re: What does this code do? Also, testing decorator via terminal?

2012-09-01 Thread Melvyn Sopacua
On 1-9-2012 8:38, Kurtis Mullins wrote: >> >> On Fri, Aug 31, 2012 at 9:17 PM, Micky Hulse wrote: >>> I'd like to add: >>> if objects.status_code != 200: >>> return objects >>> ... which is found via this code: >>> >> >> Doh! After a bit of trial and error,

Re: Django development running on 127.0.0.1:8000 not accessible from same machine

2012-09-01 Thread Melvyn Sopacua
On 1-9-2012 9:31, nav wrote: > hank you for all your replies the reason why a localhost was prepending a > www in front was because of the PREPEND_WWW=True setting which was not > present before. Once this setting is commented out everything works as it > should. First of all, thanks for follow

Re: matching a name in url

2012-09-01 Thread Melvyn Sopacua
On 2-9-2012 0:48, Mando wrote: > here is my line of code > url(r'^comment/allcomments/(?P[-\w]+)/all/$', ^^^ > The current URL, comment/mando/all/, didn't match any of these. See it now? -- Melvyn Sopacua -- You received this message because you are subscribed

Re: Using the CSRF token with two views

2012-09-01 Thread Melvyn Sopacua
On 2-9-2012 0:52, Robert Steckroth wrote: > The > problem is that the contact form > is provided by one view and processed by another. This, of course > raises a CSRF token error in the posting > submit. I don't see the logic of this, unless by view you mean request. This is also a bit confusing:

Django deployment questions

2012-09-01 Thread Mike
I just started to use Fabric to automate my deployments to my staging server. (and when I'm ready, to the production server as well). I have just a few questions for more experienced folks: Do you clone your whole git repository onto your server, or upload a new archive each time you release?

matching a name in url

2012-09-01 Thread Mando
Hello all, I'm still new to django and I'm having a little problem with the url matching. here is my line of code url(r'^comment/allcomments/(?P[-\w]+)/all/$', 'comment.views.allUserComments'), def allUserComments(request, commentName): userComments = Post.objects.get(name=commentName)

Editable Tables

2012-09-01 Thread Sait Maraşlıoğlu
Just seen a demo page http://nextgensim.info/grids so beautiful grids, lift framework can do that, I guess, havent dig much but as far as I seen, its an alternative framework. Can anybody tell me how to create this kind of interactive tables? What django has to offer, if not What keywords, I need

Re: About the Django URL tag {% url %}……

2012-09-01 Thread 绯红天空
2012/8/31 Amyth Arora > Paste the code to your urls.py and highlight which urls are not working. > > > On Thu, Aug 30, 2012 at 8:07 PM, Nikolas Stevenson-Molnar < > nik.mol...@consbio.org> wrote: > >> Also, your URL patters should start with "^" like your first one does. >> And unless you need th

Using the CSRF token with two views

2012-09-01 Thread Robert Steckroth
Hello gang, I have created a dynamic template loading system utilizing ajax inside the template. The templates and data are retrieved and displayed as expected. The problem is that the contact form is provided by one view and processed by another. This, of course raises a CSRF token error in the po

Re: Using different ports in views?

2012-09-01 Thread Robert Steckroth
I appreciate you taking the time to respond to my inquiry. I believe that my question was hastily typed and therefor too brief for an adequate response. Next time I poll this community, it will be more zealous and less anxious regarding my/our Django development. Sincerely Robert. On Sat, Sep 1, 2

Re: Any good Open Source Django-Based CRM's ?

2012-09-01 Thread Thomas Orozco
Dismiss what I said, I misread (and miswrote) CRM for CMS -_- 2012/9/1 Thomas Orozco > Django crm is pretty good and open source! > On Sep 1, 2012 4:53 PM, "pajju" wrote: > >> HI >> >> I'm looking for Django Powered Open Sourced CRM's which is ready for >> Production use. >> I did not find much

Re: Any good Open Source Django-Based CRM's ?

2012-09-01 Thread Thomas Orozco
Django crm is pretty good and open source! On Sep 1, 2012 4:53 PM, "pajju" wrote: > HI > > I'm looking for Django Powered Open Sourced CRM's which is ready for > Production use. > I did not find much help google'ing for the same. :) > > And In other Technologies, Open Sourced based CRM's which on

Any good Open Source Django-Based CRM's ?

2012-09-01 Thread pajju
HI I'm looking for Django Powered Open Sourced CRM's which is ready for Production use. I did not find much help google'ing for the same. :) And In other Technologies, Open Sourced based CRM's which one is better - vTiger or SugarCRM or anything better which is fully Open Sourced ? -- You re

Provide editable single text field (through admin) w/o using a whole model

2012-09-01 Thread Joni Bekenstein
There are 2 answers to your question here: https://groups.google.com/forum/m/?fromgroups#!topic/django-users/0uU1zYH_yOw -- 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/d

Re: Provide a single text field (editable through admin panel) w/o using a whole model

2012-09-01 Thread Joni Bekenstein
How about https://github.com/comoga/django-constance ? -- 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/-/ECCuEvzTJbIJ. To post to this group, send email to dj

setting up Django Compressor

2012-09-01 Thread Joni Bekenstein
The generated css file seems to be in your media directory. If you copy that URL, can you see the css file? Are you using Django's dev server (runserver)? If so, did you add to your urls.py a view to serve the media files? (and that view should only exist when DEBUG is true since in production y

Re: Using different ports in views?

2012-09-01 Thread Serge G. Spaolonzi
Django's internal webserver is worth for development proposes only. In production environments you should use apache/wsgi or another server. Facing a similar situation i would create different projects for each port that share the same database. From the development server you can run each project

Re: Django development running on 127.0.0.1:8000 not accessible from same machine

2012-09-01 Thread nav
Dear All, hank you for all your replies the reason why a localhost was prepending a www in front was because of the PREPEND_WWW=True setting which was not present before. Once this setting is commented out everything works as it should. Hope this saves someone some time in the future. Thanks,

Re: What does this code do? Also, testing decorator via terminal?

2012-09-01 Thread Micky Hulse
Hi Kurtis! Many thanks for your reply, I really appreciate the help! :) On Fri, Aug 31, 2012 at 11:38 PM, Kurtis Mullins wrote: > All that is doing is checking to see if the object named "objects" is an > HttpResponse object. Ah, ok! I think you've kicked me in the right direction here. > that