Re: Problem in using CSS and JavaScript in my django Project

2015-08-29 Thread Tiago Almeida
I think you need to provide more details. Which server are you using? Django version? Can you create a 1 page django project in the same way? Does it exhibit the same issue? sexta-feira, 28 de Agosto de 2015 às 19:46:51 UTC+1, Sumit Chansouliya escreveu: > > Hi All > I am learning Django . I

Re: Introduction to Pulpo-Forms

2015-07-31 Thread Tiago Almeida
Hi, Sounds cool! Do you have screenshots / demos to see before installing? Thanks, Kind regards, quinta-feira, 30 de Julho de 2015 às 22:46:12 UTC+1, Luciano Ferrari escreveu: > > Last April we finished the development of a dynamic form builder, called > pulpo-forms, to use within a Django Proj

Re: setlang using AJAX

2015-02-12 Thread Tiago Barufi
You could simply add csrfmiddlewaretoken: document.getElementsByName('csrfmiddlewaretoken')[0].value, to the parameters on $.post. That would surely prevent the 403. Em segunda-feira, 30 de maio de 2011 12:03:46 UTC-3, doktoreas escreveu: > > Thank you very much, for your help and your code.

Re: please help: problem saving strings to the database

2014-11-21 Thread Tiago Almeida
Check if you have a comma after the string. log = ClassroomLog.objects.get(...) log.text = "Hallo"*,* log.save() Sexta-feira, 21 de Novembro de 2014 11:57:40 UTC, Sabine Maennel escreveu: > > Hello, > > I do not know why this is happening: If I try to update a database record >

Suggestions on autocomplete solutions for non-model forms not in the admin

2014-09-26 Thread Tiago Almeida
Hi, I'd like to implement an autocomplete functionality for a text field that is defined via a normal form class (forms.Form, not a ModelForm) and rendered automatically via cryspy-forms (although this is not a requirement). Autocomplete suggestions should have some kind of template (not simply

Re: Python/Django Developer |For Hire| - 40 hours/week

2014-08-19 Thread Tiago de Souza Moraes
Hello, this is a remote work? Tiago On Tuesday, August 19, 2014 8:02:40 AM UTC-3, Subhish Nair wrote: > > > > *Hi,* > *I am Subhish Nair, BDE of SparkSupport Infotech Pvt Ltd.* > > > > *About Us :Sparksupport* is an agile organization with an impeccable > rec

Re: Segmentation fault

2014-08-08 Thread Tiago Almeida
Try to update both your python and your mysql<-> python bindings. The libraries you are using are either incompatible or have a bug. Good luck Sexta-feira, 8 de Agosto de 2014 5:21:44 UTC+1, Tianwei Sheng escreveu: > > Hi, all, > > Recently I constantly met segmentation fault for my django serve

Re: A PHP framework with some Django features?

2013-06-28 Thread Tiago Almeida
Hi , try Symfony2. Symfony template language has the same syntax as django templates. Only the template filters have different names but similar functions. It does not have an admin as good as django's. There are third party apps (called bundles in the context of symfony) that try to do that (e.

Re: Error passing data from views to template

2013-02-18 Thread Tiago Carvalho
t. Right now you're > passing it as a positional string due to the quotes. > > On Sunday, February 17, 2013 10:34:12 AM UTC-8, Tiago Carvalho wrote: >> >> Hello, >> >> I'm new to Django and I'm with an error, passing data from views to >>

Error passing data from views to template

2013-02-17 Thread Tiago Carvalho
Hello, I'm new to Django and I'm with an error, passing data from views to templates. Here is the traceback: http://dpaste.com/942117/ Request URL: http://localhost:8000/about/ Django Version: 1.4.3 Exception Type: AttributeError *Exception Value: 'str' object has no attribute 'update'* Excepti

Re: Background Programs in Django

2012-09-26 Thread Tiago Albineli Motta
Create a django command to do the job and put it in the crontab On Wednesday, September 26, 2012 9:07:23 AM UTC-3, surya wrote: > > I have to use RSS/ Atom feeds of blogs in my Django app. So, I thought to > use Google Feed API. All the API provides is a BIG list of feeds.. > > If I need a post

Re: A lots of foreign keys - Django Admin

2012-09-26 Thread Tiago Albineli Motta
We had similar problem a few months ago, one join in only two tables (but those two tables were big, very big) we solve the problem denormalizing the table. So everytime we save some row for table1, we update the table2 with a column table1_name_cache. In the list, we display this column. On

Re: Storing Sorl-thumbnail created images in separate folder

2012-04-30 Thread Tiago Almeida
Have you tried changing the THUMBNAIL_STORAGE setting? I haven't done what you ask for but you should give it a try. http://thumbnail.sorl.net/reference/settings.html#thumbnail-storage Domingo, 29 de Abril de 2012 17:27:56 UTC+1, Swaroop Shankar escreveu: > > Thanks Kelly, could you tell me wh

Re: Apache RewriteRule for django

2012-01-01 Thread Tiago de Souza Moraes
Hi Bob Kline, May be that this link help you: http://teago.futuria.com.br/tip/4/ Tiago On Mon, Jan 2, 2012 at 12:39 AM, Bob Kline wrote: > I'm moving a django site to a shared hosting server, where I'll need > to use fastcgi (the site on the original server is using mod_pytho

Re: Is DJango bad for conveying business-logic?

2011-12-14 Thread Tiago Almeida
"Business Logic" is too broad to give you a good answer. If you mean stuff like calculating salaries (if your domain is HR) or determining if a 'monster' is dead (for a game) then django should pose no obstacle since it is based in python and you should implement all that logic in your own business

Re: converting a large site to Django

2011-12-01 Thread Tiago Almeida
Hi, I'm assuming you have lots of html files that you want to serve. You could try writing a catch all url pattern that is handled by a generic view to serve these html files. I'm not sure if there is something already like this in django itself. However, if you don't want/need to process the html

Re: What server configuration should I use for a Django site like this?

2011-11-29 Thread Tiago Almeida
Does it need to be a vps? there are much cheaper shared hosting alternatives for django. I don't recommend going forward with apache with so few ram, use nginx or lightppd. Best regards, On Nov 28, 4:30 pm, Andre Lopes wrote: > I need to put in production a Django website, but I don't know what >

Re: Revamping and existing project

2011-10-26 Thread Tiago Almeida
Hi, I think you need to be more specific. What do you mean with "i want to be able to view the page as i edit it". What page? Do you mean what you see in the browser? If so, you need something like aloha editor (http://aloha-editor.org/) and you need to integrate it in your app. Best regards, O

Re: UML Diagrams

2011-10-13 Thread Tiago Almeida
Something I found but never had the time to try: http://code.google.com/p/uml-to-django/ Hope it helps. On Oct 13, 6:34 am, Apurv Verma wrote: > Hii all, >  I am making a web application in Django. What tools are available to > create class diagrams which can then later autogenerate the code >

Re: Is there a way to use a tree control in my template

2011-08-10 Thread Tiago Almeida
As far as I know, Django does not ship with that by defaut. Try searching for an app or a snippet on http://djangosnippets.org It shouldn't be too hard to do. Best regards On Aug 10, 1:31 pm, Hayyan Rafiq wrote: > Which form element giveds the tree control ?? > > > > > > > > > Date: Tue, 9 Aug 2

Re: Creating a simple contact form

2011-06-17 Thread Tiago Almeida
Try opening a django shell and calling send_mail by hand to see what exception you get (if any). Best Regards, On 17 Jun, 07:27, raj wrote: > Hey guys, > > I have a webfaction account, and I was trying to get a contact form > working for my website. The problem is that I can't seem to get it to >

Re: VERY cheap django hosting?

2011-06-08 Thread Tiago Almeida
I use http://djangohosting.ch/ for a small company website and haven't experienced any issues on the last 4 months. It is a shared hosting account but the machine is quite beefy and always idle :) you pay 12€ every 3 months. It is very easy to deploy django project there, unlike vps where you have

Re: probably a simple query: looping for an integer number within an html page

2011-05-01 Thread Tiago Almeida
Can you provide more details? What error are you getting? Or you get no error and no output? Are you sure you are inserting "somelist" in the context? Is somelist a list of integers or is it an object with an attribute int_item that is a list of ints? Br, On Apr 30, 10:42 pm, Jason <1jason.whatf.

Re: What is the best server for Django

2011-03-10 Thread Tiago Almeida
I've been using a shared hosting at djangohosting.ch and I am happy. Lowest plans start at 4€/month, you only have to pay 3 months in advance. Servers physically in europe (might be important due to response times) and very simple web based installer for django apps. Good luck. On 9 Mar, 09:53, C

Re: Django dev server issue

2011-01-03 Thread Tiago Almeida
Hi, Your files seem fine, I believe. Have you found the cause? What version of python and django are you using? I also have this issue but it is not often enough for me to worry too much. Killing the server and restarting it solves it for me.. BR, On 3 Jan, 08:00, daniels wrote: > Here

Re: 'utf8' codec can't decode byte 0xe9 in position 303: invalid continuation byte

2010-11-22 Thread Tiago Almeida
Hi, change the encoding of the html file to 'utf-8'. If you're using eclipse(pydev), you can do this by going to Edit -> set encoding. (or something like that) I remember it is the last choice in one of the top menus and it reads "Set enconding". Best regards, Tiag

Install Django in a Production server!

2010-03-11 Thread Tiago
I want to keep my dedicated server for my company, where can i find a tutorial, the best choices for OS. Thanks -- 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 f

Re: RV: photos sexy

2010-02-26 Thread Tiago Freire
I bet this is a ploy of the django team to draw in more developers... --- Tiago Mikhael Pastorello Freire Av. Getúlio Vargas, 901 sala 1502 Bairro Menino Deus Porto Alegre CEP 90150-003 +55 (51) 3012-7080 www.cert-id.com.br On Feb 26, 2010, at 3:16 AM

Re: Generating a single form with OneToOneField

2009-10-04 Thread Tiago Samahá
Someone can help me? Thanks. On 2 out, 15:55, Tiago Samahá wrote: > Hello All, > > i'm trying generate a single form with two models. > > class Contact(models.Model): >     phone = models.CharField(max_length=8) >     email = models.CharField(max_length=50) >

Generating a single form with OneToOneField

2009-10-02 Thread Tiago Samahá
Hello All, i'm trying generate a single form with two models. class Contact(models.Model): phone = models.CharField(max_length=8) email = models.CharField(max_length=50) class Client(models.Model): name = models.CharField(max_length=50) type = models.CharField(max_length=10)

Re: Manager is not accessible via model instances

2009-09-18 Thread Tiago Serafim
Try this: def get_active_members(self): return return self.get_query_set().filter(is_active=True) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: Design question: User vs. UserProfile

2009-09-18 Thread Tiago Serafim
I`d go with the first. It`s easier to get the current logged in user and all other pluggable apps use User, so it's a common thing to do and you can integrate things easily . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Embedding A List in urlpatterns

2009-09-17 Thread Tiago Serafim
rong path > here. The above comes back with a TypeError saying "unhashable type: > 'list'" ... I'm guessing that you can't put a list in place of the raw > string that the patterns method expects. So, my question is... how do > I get patterns to match al

Re: How to get cms like features in Django

2009-09-15 Thread Tiago Serafim
If it's simple enough, check FlatPages. Comes bundled with django, so you have it running within minutes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Getting fields in a user profile

2009-09-15 Thread Tiago Serafim
ck (most recent call last): > File "", line 1, in > AttributeError: 'QuerySet' object has no attribute 'modify_dt' > > > -- Tiago Serafim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Getting fields in a user profile

2009-09-15 Thread Tiago Serafim
Hi, filter returns a list, with zero or more elements. To fix what you showed, you should call "get" instead of "filter". "get" either return a object or throws an Exception. Check the docs for more info. --~--~-~--~~~---~--~~ You received this message because you

Re: path depth problem

2009-09-15 Thread Tiago Serafim
e advice about my coding style, you get > bonus points for heaven and I love you till the end of my life. :-D > > Thanks in advance, > nick > > > > -- Tiago Serafim --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: When did Paul join the Beatles?

2009-09-14 Thread Tiago Serafim
Yes, it's inefficient. Yes, there's a way to do what you want: memberships = Membership.objects.all().select_related('group', 'person') ;-) On Mon, Sep 14, 2009 at 5:27 PM, W.P. McNeill wrote: > > Is this inefficient? Is there a way to do this with a si

Re: When did Paul join the Beatles?

2009-09-14 Thread Tiago Serafim
You should query Membership like you do with any other model. paul = Person.objects.get(...) beatles = Group.objects.get(...) membership = Membership.objects.get(person=paul, group=beatles) print membership.join_date --~--~-~--~~~---~--~~ You received this message

Re: Development and deployment wit Git

2009-09-14 Thread Tiago Serafim
I recommend http://repositoryhosting.com/ . I needed the support a couple of times and they were *very* responsive. The service is great and the price is very fair. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: render a table

2009-09-14 Thread Tiago Serafim
> > {% endfor %} > > > can you help me to write it > > Thanks Luca > > > -- Tiago Serafim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Newbie: How to use object related to dropdown selection in django/javascript spaguetti code?

2009-09-13 Thread Tiago Serafim
Hi, First you should have an attribute "name" on your select. It's needed to pass the value when the form is submitted. If your select's name is "foos_combo", then your code you'll look like this: def foo_relatory(request): if request.method == 'POST': foos_combo = request.POST['foo

Re: are you using mptt, treebeard or something else?

2009-09-13 Thread Tiago S.
What about django-easytree? I'm tempting to try it. http://bitbucket.org/fivethreeo/django-easytree/overview/ On Sep 4, 6:30 am, Aljosa Mohorovic wrote: > On Sep 3, 5:51 pm, Sandra Django wrote: > > > Sorry, a cuestion because I don't understand.mpttrequires v1.1, but not > > SVN version? > >

Re: redirect after post caches anchor?

2009-09-12 Thread Tiago Serafim
another one) and add an attribute id="top" on your "body" tag. HTH, On Sun, Sep 13, 2009 at 1:55 AM, Margie wrote: > > Hi Tiago, > > Thanks very much for your response. So is there a way I can tell the > client that I don't want to retain the same anchor?

Re: docstring format documentation for the admin doc contrib?

2009-09-12 Thread Tiago Serafim
o"`` ``"no"`` (converts None to > False >if no mapping for None is > given. >== == > == >""" > > I would like to document my own

Re: redirect after post caches anchor?

2009-09-12 Thread Tiago Serafim
k/12/ HTTP/1.1" 302 > 0 > [12/Sep/2009 18:16:52] "GET /taskmanager/edit_task/12/ HTTP/1.1" 200 > 50904 > > So the #comment_101 is not there, yet it still appears in my firefox > browser. Anyone know why this is? > > Thanks, > Margie > > > >

Re: Return something specific on 404's on a particular path

2009-09-11 Thread Tiago Serafim
Hi, You can take a look on how the contrib.redirect handles 404 and then create a custom Middleware for your specific need. http://code.djangoproject.com/browser/django/trunk/django/contrib/redirects/middleware.py HTH, Tiago On Fri, Sep 11, 2009 at 11:26 PM, Jordon Wii wrote: > Hi,I want

Re: Couple of basic Django questions

2009-09-11 Thread Tiago Serafim
ch been used on open source apps. > 2. Does Django have dynamic loading of stylesheet and javascript files > (as rails)? > > You have to load yourself. You can use the MEDIA_URL context variable to help you to not hardcode paths. Like this: HTH. -- Tiago Serafim --~--~-~-

Re: Javascript working on development, not apache

2009-09-11 Thread Tiago Serafim
he development server and > not Apache? > > Most of my js is linked. Oh, maybe I should make it local and see what > that does. I will try that and if it works, I will respond to my own > problem, if not, I will leave this open. > &

Re: How to receive Emails in my django app

2009-01-18 Thread Tiago S.
Hi, Take a look on this opensource app. It's a helpdesk system and it receives email and process then afterward. http://code.google.com/p/jutda-helpdesk/ Regards, On Jan 16, 4:11 pm, zweb wrote: > i can send emails easily using django. > > I want to set up an email address, where users can se

Re: StringList Field Type

2009-01-06 Thread Tiago S.
Hello again Bruno! This solution is neat, thanks for that. I didn't know about getattr until now. Regards, Tiago On Jan 5, 9:05 pm, bruno desthuilliers wrote: > Well, then there's another simple denormalization: > > class Question(models.model): >     quest

Re: StringList Field Type

2009-01-05 Thread Tiago S.
anks for your opinion, Bruno.. I dug a little more and found a custom Field that does JSON serialization: http://www.djangosnippets.org/snippets/377/ Thanks, Tiago --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

StringList Field Type

2009-01-05 Thread Tiago S.
a custom Model Field and maybe reinvent the wheel. Does anyone have some clue on how to achieve that? Maybe I should piclke the list, or that would be a overkill? Thanks in advance, Tiago [1] http://code.google.com/appengine/docs/datastore/typesandpropertyc