Django on Mac OS X

2010-07-18 Thread Daniel França
jango_timezones-0.1.4-py2.5.egg setuptools.pth django_db_log-2.0.0-py2.5.egg easy-install.pth tagging django_dbtemplates-0.7.1-py2.5.egg include_server django_extensions include_server-3.1_toolwhip.1-py2.5.egg-info python --version Python 2.5.4 Best Regards, Daniel França -- You received this message becaus

Re: Django on Mac OS X

2010-07-18 Thread Daniel França
thanks a lot, now it's working.. at least this part. =) On Sun, Jul 18, 2010 at 11:10 PM, Shawn Milochik wrote: > This is a known (and common) problem. Here's an easy fix that I've used > many times. > > http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html > > Incidentally, you ca

Django error can't adapt

2010-07-31 Thread Daniel França
Paulo'(I'm in Brazil), but the error still happens. I tried anothers possibilities of TIME_ZONE but no success. Anyone know how to solve that? Best Regards, Daniel França -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Django error can't adapt

2010-08-01 Thread Daniel França
Hi, I'm not running on Apache, just trying to run in the django standalone server On Sun, Aug 1, 2010 at 5:47 AM, Antoni Aloy wrote: > 2010/8/1 Daniel França : >> Hi, >> I just migrated from Linux to Mac OS, and I'm getting an error message >> when I try regist

Re: Django error can't adapt

2010-08-03 Thread Daniel França
anyone? 2010/8/1 Daniel França : > Hi, I'm not running on Apache, just trying to run in the django > standalone server > > On Sun, Aug 1, 2010 at 5:47 AM, Antoni Aloy wrote: >> 2010/8/1 Daniel França : >>> Hi, >>> I just migrated from Linux to Mac OS, an

Re: Django IDE

2010-08-04 Thread Daniel França
I'm using Editra now, it seems fine and lightweight and have plugin support. 2010/8/4 Рогалевич (Ковалевич) > gedit + plugins + snippets is easier to learn than vim(gvim) and looks more > beautiful :) , but on windows there is bad support of python plugins (if you > really need to develop on win

Re: Django on Mac OS X

2010-08-06 Thread Daniel França
44, in execute return self.cursor.execute(query, args) DatabaseError: can't adapt type 'US/Eastern' Anyone have any ideia what it can be? my python version is 1.2.1 On Mon, Jul 19, 2010 at 9:01 AM, Shawn Milochik wrote: > Daniel, > > Glad to help. If you're new to

Re: Django on Mac OS X

2010-08-06 Thread Daniel França
gt; database with a wrong encoding type. > You should have a look at: > http://docs.djangoproject.com/en/1.2/ref/unicode/ > > Regards, > Xavier. > > On Fri, 6 Aug 2010 11:13:40 -0300, Daniel França > wrote: > > Hi, I'm still get error trying to run my project on Mac

Re: Django on Mac OS X

2010-08-06 Thread Daniel França
My database is UTF-8, it's fine, doesn't?. I'm afraid to reinstall everything from ports and start to get a lot 64-32 bits incompatible issues like happened before =/ 2010/8/6 Daniel França > ops, sorry. python 2.7 django 1.2.1 =} > thanx, I'll look at this > >

Re: Django on Mac OS X

2010-08-07 Thread Daniel França
I just created my db using django manage syncdb, I think it should create right. or how can I see the encode of each tables? I'm using postgresql 8.4 maybe I'll need reinstall everything =S On Sat, Aug 7, 2010 at 6:49 AM, Xavier Ordoquy wrote: > > Le 7 août 2010 à 06:44, Danie

Re: Django on Mac OS X

2010-08-07 Thread Daniel França
.com/django-programmingerror-cant-adapt.html > According to the first comment, you might do something wrong with the > arguments types. > Unless you give a table description (\d from psql shell) and the model I'm > not sure I can help you further. > > Regards, > Xavier. >

Re: Django on Mac OS X

2010-08-07 Thread Daniel França
Ordoquy wrote: > And what's your Account model ? > I noticed it is in its get_or_create that you get the error. > > Regards, > Xavier. > > Le 7 août 2010 à 18:52, Daniel França a écrit : > > Same error =/ > but now,I don't know why.. it's saving at the

Re: Django on Mac OS X

2010-08-07 Thread Daniel França
ption =) but, of course the code doesn't do what it should do. So, I don't know why, but the error is in the connect... maybe because of timezone attribute of user anyone has any idea? 2010/8/7 Daniel França > Xavier, I think we are almost there :P > because there's a timezone

Re: Django on Mac OS X

2010-08-08 Thread Daniel França
ied to get_or_create the account with timezone and language set > to some value ? > > Regards, > Xavier. > > Le 8 août 2010 à 04:09, Daniel França a écrit : > > More information. > here: > def create_account(sender, instance=None, **kwargs): > if

Re: Django on Mac OS X

2010-08-08 Thread Daniel França
l constraint on your db. >> Have you tried to get_or_create the account with timezone and language set >> to some value ? >> >> Regards, >> Xavier. >> >> Le 8 août 2010 à 04:09, Daniel França a écrit : >> >> More information. >> here: >> de

Re: Django on Mac OS X

2010-08-09 Thread Daniel França
yeah, psycopg2 On Mon, Aug 9, 2010 at 1:27 AM, Sam Lai wrote: > 2010/8/9 Daniel França : > > I tried to reinstall everything... installing python+postgres from ports > > and I get the Symbol not found: _PQbackendPID error again from psycopg. > > I guess the best soluti

Re: Django on Mac OS X

2010-08-09 Thread Daniel França
haven't read all the comments here but if you've just started > > working on osx you should definitely check out > > http://github.com/mxcl/homebrew > > - it's a package manager which works like a charm most of the time. > > > > Installation is ext

Re: Django on Mac OS X

2010-08-09 Thread Daniel França
xactly where the issue is with the runserver_plus command (in browser > debugger so you'll get the variables that are missing here. > Most probably, your timezone field causes the issue. > > Regards, > Xavier. > > Le 9 août 2010 à 22:40, Daniel França a écrit : > > Tha

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
a Custom Profile for the User and it is an upgrade from Django > 1.1 and ... you need to adapt the minor details about it . > If you code is in a SVN server I can do a svn export and test it here > if you want ... if I do have the same problem ... it is yr app :( > > \T, > >

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
ahh... and my code is in github if someone wanna test it: http://github.com/danielfranca/Tint 2010/8/10 Daniel França > My code is based on Pinax: http://pinaxproject.com/ > and the Profile comes from there. > > > On Tue, Aug 10, 2010 at 5:33 AM, tsmets wrote: > >> My

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
coded path here and there (the log > files for example). > > Regards, > Xavier. > > Le 10 août 2010 à 13:12, Daniel França a écrit : > > ahh... and my code is in github > if someone wanna test it: http://github.com/danielfranca/Tint > > 2010/8/10 Daniel França > &

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
everything seems to be working fine. > > Somehow, the changes you made seem to have messed up something or you don't > use the right pinax/django versions. > > Regards, > Xavier. > > Le 10 août 2010 à 14:21, Daniel França a écrit : > > the log files are for tests

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
It's very useful Andy, sympathy is welcome =) I was programming under linux, and I guessed that would be really straight forward port my project to OSX, I was wrong :( > 2010/8/10 AndyB > > I haven't got anything useful to add other than some sympathy. I >> vented my incoherent rage on Twitter a

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
out a month arguing about this error, and I'm sure the error message isn't clear enough. Maybe it's a silly mistake, but I think I should receive a message that clearly say me that. On Tue, Aug 10, 2010 at 10:35 AM, Xavier Ordoquy wrote: > > Le 10 août 2010 à 15:10, Dan

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
rk with > django 1.2. > I bet you installed pinax on your linux box but not on your osx one (or not > in the same virtual env). > > Regards, > Xavier. > > Le 10 août 2010 à 15:42, Daniel França a écrit : > > I'm not blaming OSX. > I just said that it was worki

Re: Django on Mac OS X

2010-08-10 Thread Daniel França
d pip to get the same environment on your > various development boxes as well as your production ones and enjoy > virtualenv, pip, Python, Django, OSX and Linux :) > > Regards, > Xavier. > > Le 10 août 2010 à 17:12, Daniel França a écrit : > > *I bet you installed pinax on

Re: Django on Mac OS X

2010-08-22 Thread Daniel França
with django-timezones > > Try to install dev version from here: > pip install -e git:// > github.com/brosner/django-timezones.git#egg=django-timezones > > Andrew > > On Aug 9, 1:40 pm, Daniel França wrote: > > Thanx for all the help, > > I tried to run on Sql

Dajax isn't working

2010-09-25 Thread Daniel França
Hi all, I just start to use Dajax with my Pinax based project I followed the installation steps and it's almost working :P I tried to do a test just copying the following code from Dajax examplex: http://www.dajaxproject.com/random/ I'ts calling the randomize function correctly (and I can debug i

Re: Dajax isn't working

2010-09-25 Thread Daniel França
uot;value"}]) and my js raise this error: Uncaught ReferenceError: Dajax is not defined but these error is not in my function randomize, this function has the Dajax import and it's working debuging it seems to be here that it's raising this error: self.shutdown_request(request) 2010/9/25

Re: Dajax isn't working

2010-09-25 Thread Daniel França
It's working now.. I was referencing another jquery file 2010/9/25 Daniel França > some extra informations: > I'm adding this lines to my base html: > type="text/javascript"> > {% dajaxice_js_import %} > > The response has the value(s

Update itens using Dajax

2010-11-04 Thread Daniel França
his to the page that shows the new items. But it still sounds like a workaround, don't, I think there's a more elegant way to do that. Any suggestion? Best Regards, Daniel França -- You received this message because you are subscribed to the Google Groups "Django

int() argument must be a string or a number, not 'Model in Form Submit

2012-04-02 Thread Daniel França
* * At red line, just after call Job constructor. The instance has all its properties as None. And at instance.save() it throws the error. I'm using AdminDateWidget, but it working fine, aparently. I've pasted the full stacktrace in codepaste: http://codepaste.net/3krpkn Best Regards, Dan

Re: int() argument must be a string or a number, not 'Model in Form Submit

2012-04-02 Thread Daniel França
Thanks, that was an stupid mistake. On Mon, Apr 2, 2012 at 11:21 AM, Tom Evans wrote: > 2012/4/2 Daniel França > > > > Hello there, > > I'm trying to create an instance for a model after fill a form, but then > I got this error message when I click in submit: >

Error migrating using South

2012-06-12 Thread Daniel França
ngo.db.utils.DatabaseError: current transaction is aborted, commands ignored until end of transaction block* It's happening for every application that I try to migrate and I can't figure out why, I can't see anything clear in the error messages. Anyone has any idea about what'

Re: Error migrating using South

2012-06-12 Thread Daniel França
onfig-logging.html#GUC-LOG-STATEMENT). > Then you can watch the log while you execute the migrate command to see > what's missing. > > Just be careful that doing this on a live system can cause downtime and > chew up disk space if your logs aren't being rotated and you

Re: Error migrating using South

2012-06-12 Thread Daniel França
's working fine. On Tue, Jun 12, 2012 at 4:51 PM, Daniel França wrote: > Thanks for the anwser > I've installed Haystack, and it was working fine local, but at the server > I got this error. > First I've tried to install haystack like I did local, using pip pip &

Re: Error migrating using South

2012-06-13 Thread Daniel França
I recreated the database and still get the same error when executing a simple "syncdb". Tried to change the database connection to sqlite and now I got the error that the sqlite3 module isn't installed... I think my installation is messed up. On Tue, Jun 12, 2012 at 7:29 PM

BDD 4 Django

2012-09-23 Thread Daniel França
rowser accessing the tests database (it requires Django >= 1.4) The documentation and source code can be found here: https://github.com/danielfranca/BDD4Django It can be installed using pip. Feel free to ask, criticize or suggest anything. Best Regards, Daniel França -- You received this mes

Re: BDD 4 Django

2012-11-05 Thread Daniel França
share or ask anything about this package. Best Regards, Daniel França about.me/danielfranca On Sun, Sep 23, 2012 at 7:25 PM, Daniel França wrote: > Hi guys, > > I just created a package for a better integration between > Morelia(BDD)/Splinter(Browser Test) and Django. > So you can

Custom queryset in a list_editable field of Admin changelist

2013-01-16 Thread Daniel França
instance fields, is there some way to do what I'm thinking about in Admin? If you've any other suggestions to do that please let me know. Best Regards, -- Daniel França, about.me/danielfranca -- You received this message because you are subscribed to the Google Groups "Django user

TDD with Django/Splinter/plupload queue

2013-03-20 Thread Daniel França
r way would be click the button to browse the files, and choose the file... but I don't think it's possible using Splinter (or selenium), is it? Or with drag-n-drop of the files. Anyone has any suggestion of the best way to automatize theses tests? -- Daniel França, about.me/danie

Re: TDD with Django/Splinter/plupload queue

2013-03-23 Thread Daniel França
Hi guys, Thanks for the answers. I'm gonna have a look in this phantomjs, I think it does what I need. Best, Daniel França On Wed, Mar 20, 2013 at 4:39 PM, Elliot Bradbury wrote: > PhantomJS is a headless webkit browser that can be programmed to perform > automated webpage tasks

Job opportunity in Silicon Valley

2013-04-04 Thread Daniel França
(for meetings/conversation). Allowed to move to Silicon Valley. Plus Good knowledge in TDD. If you feel you fit the job please send your resume to dan...@weddingsnap.com. -- Daniel França, about.me/danielfranca -- You received this message because you are subscribed to the Google Groups "Dj

Testing tastypie DELETE, sending data in the body

2013-04-13 Thread Daniel França
'json', authentication=self.credentials, data=data) -- Daniel França, about.me/danielfranca -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Django + Bamboo

2013-04-18 Thread Daniel França
mend some other tools? Best, -- Daniel França, about.me/danielfranca -- 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...@googlegr

Ajax headers not work in all browsers?

2011-04-23 Thread Daniel França
ery script: $('#id_show_updates').load("/profiles/get_updates/"+ document.getElementById('last_update').innerHTML); It's working like a charm in Chrome and Opera... but at Firefox django thinks it's not Ajax and =/ Anyone know someway to solve that? Best Regards, Daniel

Re: Ajax headers not work in all browsers?

2011-04-24 Thread Daniel França
2011 at 2:44 AM, Masklinn wrote: > On 24 avr. 2011, at 04:38, Daniel França wrote: > > Hi all, > I was using JQuery to retrieve some data using AJAX and Django... > at my django view code I wrote a verification to check if it's an ajax > request: > *if request.is_ajax():* >

Re: Ajax headers not work in all browsers?

2011-04-24 Thread Daniel França
ionid=498174cb74222f0570fead661c787935; __utmb=111872281.5.10.1303693660 2011/4/24 Daniel França > There are some django middleware classes to test the browser compatibility, > can it be a problem? > > There's no cross domain call, it's all about my domain =/ > It's nec

Form with manytomany field

2011-05-01 Thread Daniel França
nt this using Django? Best Regards, Daniel França -- 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 to django-users+unsubscr

Re: Advanced Search

2011-05-02 Thread Daniel França
Hi, you can try: http://haystacksearch.org/ <http://haystacksearch.org/>I think it solves your problem Best Regards, Daniel França On Mon, May 2, 2011 at 5:11 AM, pankaj sharma wrote: > i am new on django, i want to know how can we make advanced search on > our website. > > &g

Re: Form with manytomany field

2011-05-02 Thread Daniel França
anyone? Maybe what I need is something like OneToMany relationship, i guess, but there's no such thing in django 2011/5/2 Daniel França > Hi all, > I'm trying to create a form from a model with ManyToManyField, > I want something like this: You fill some fields from the ref

Re: Form with manytomany field

2011-05-03 Thread Daniel França
Foreign Key won't generate the form from model this way I told I'm trying to escape from use of extensive javascript On Tue, May 3, 2011 at 5:46 AM, Daniel Roseman wrote: > On Tuesday, 3 May 2011 02:37:56 UTC+1, daniel.franca wrote: >> >> anyone? >> Maybe what I need is something like OneToMany r

Re: Form with manytomany field

2011-05-03 Thread Daniel França
mpanies > they've worked for. This should get part of the way there: > > http://docs.djangoproject.com/en/1.3/topics/forms/formsets/#using-more-than-one-formset-in-a-view > > Hope that helps. > > On May 2, 6:37 pm, Daniel França wrote: > > anyone? > > Maybe wh

Overide error messages in models

2011-05-11 Thread Daniel França
Hi all, I need to override error messages (like for required fields) directly in Models, I don't wanna duplicate code declaring some fields again in forms, and in some cases I don't even create the forms, just using generic views for model... I was looking for a solution to change the default erro

Re: Overide error messages in models

2011-05-12 Thread Daniel França
no way? I'll need to create new model forms? 2011/5/12 Daniel França > Hi all, > I need to override error messages (like for required fields) directly in > Models, I don't wanna duplicate code declaring some fields again in forms, > and in some cases I don't even c

Re: Overide error messages in models

2011-05-12 Thread Daniel França
I wanna change the error messages without to need to rewrite fields code, to be more specific I want to translate them... On Thu, May 12, 2011 at 10:25 PM, Shawn Milochik wrote: > On 05/12/2011 08:08 PM, Daniel França wrote: > >> no way? I'll need to create new model forms

Re: Overide error messages in models

2011-05-15 Thread Daniel França
I don't know if I understood, but the example you posted is about forms, right? That's the point, I don't wanna need to write forms to modify error messages. On Thu, May 12, 2011 at 10:54 PM, Shawn Milochik wrote: > On 05/12/2011 09:35 PM, Daniel França wrote: > >&g

KeyError in UnitTests

2011-07-07 Thread Daniel França
pe': 'PF', 'document': '692.694.115-75', } resp = c.get( reverse('new_client'), { 'extra_context': {'user_type':'C',}}) self.assertEqual(resp.context['user_type'], 'C'

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
le. > > Furthermore, if country can be blank, you should use > > if cleaned_data.get('country', None): >do_stuff() > > to avoid that KeyError. > > Try that and if it doesn't work, post your complete form with > validation and the relevant view. > &g

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
I did some tests I put self.cleaned_data['X'] where X I change to all the fields of my form, it in *def clean() *function and it seems only 2 fields aren't available, state and country, I believe that it's not a coincidence that both of them are foreign key(objects). I'm using a sqlite database an

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
I changed the test runner to default and the error message is a lot more clear. I got a DatabaseError: no such table: cadastroav_country but this should be created by tests, right? I'm using South, maybe it's a problem? 2011/7/7 Daniel França > I did some tests > I put self

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
> On 07/07/2011 10:44 PM, Daniel França wrote: > >> I changed the test runner to default and the error message is a lot more >> clear. >> I got a DatabaseError: no such table: cadastroav_country >> >> but this should be created by tests, right? >> I

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
, 'address': 'Avenida de Teste', 'number': 9876, 'city': 'Rio de Janeiro', 'postal_code': '12345-000', 'state': 'PR', 'country':

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
yeah, thanks a lot, it's not 'BR' but I passed the ID of country and state and it worked. =) On Fri, Jul 8, 2011 at 12:15 AM, Shawn Milochik wrote: > Could it be because the test is passing 'Brasil' instead of 'BR'? I'm > assuming 'BR' is a valid choice and 'Brasil' is invalid. That's why you're

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
but my set_trace still freezes =/ If anyone have any idea what could be that. I'm on a Mac OS 10.6 2011/7/8 Daniel França > yeah, thanks a lot, it's not 'BR' but I passed the ID of country and state > and it worked. =) > > > On Fri, Jul 8, 2011 at 12:15 AM,

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
Problem solved: nose.tools.set_trace :) 2011/7/8 Daniel França > but my set_trace still freezes =/ If anyone have any idea what could be > that. > > I'm on a Mac OS 10.6 > > > 2011/7/8 Daniel França > >> yeah, thanks a lot, it's not 'BR'

Haystack error rebuinding index

2010-12-19 Thread Daniel França
, I didn't created a full_prepare atribute, but I wonder that haystack created that for me, right? Anyone has any idea where can be the error? and how can I fix it? my Django version: 1.2.3 Best Regardds, Daniel França -- You received this message because you are subscribed to the Google Groups &quo

Re: Haystack error rebuinding index

2010-12-20 Thread Daniel França
anyone? 2010/12/19 Daniel França > Hi all > I was using haystack(xapian) at a Mac, so I moved it to a Linux (Ubuntu > 10.10) using python 2.6.6, but now when I try to rebuild the index I get the > following error: > AttributeError: 'ProfileIndex' object has n

Re: Haystack error rebuinding index

2010-12-21 Thread Daniel França
ite'), null=True, blank=True) account_type = models.ForeignKey(AccountType, verbose_name=('account type'), null=True) and it was working at Mac, so I believe it's a misconfiguration or misinstallation On Tue, Dec 21, 2010 at 3:00 AM, Sam Lai wrote: > 2010/12/21 Daniel F

Re: Haystack error rebuinding index

2010-12-21 Thread Daniel França
, in handle self.handle_app(None, **options) File "/usr/local/lib/python2.6/dist-packages/haystack/management/commands/update_index.py", line 107, in handle_app index.backend.update(index, small_cache_qs[start:end]) File "build/bdist.linux-x86_64/egg/xapian_backend.py",

Re: Haystack error rebuinding index

2010-12-21 Thread Daniel França
Hi, the problem was some incompatibilites between haystack and haystack-xapian 2010/12/21 Daniel França > here's the stackstrace > > Traceback (most recent call last): > File "manage.py", line 28, in > execute_from_command_line() > File > "/us

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread Daniel França
If the operations are model related, why don't move some of those functions to models.py. On Mon 19 Jan 2015 at 08:46 Mike Dewhirst wrote: > On 19/01/2015 6:28 PM, Cheng Guo wrote: > > Hello, > > > > I am new to Django and I have run into an issue with views.py. I > > understand that there is a

Re: Django + Bamboo

2015-01-23 Thread Daniel França
out how to >> make this work. >> >> What's is the best approach? cloud or local server? >> Is it better to work with simple bash scripts or you recommend some other >> tools? >> >> >> Best, >> -- >> Daniel França, >> about.me

Re: Django + Bamboo

2015-01-26 Thread Daniel França
; > Cal > > On Fri, Jan 23, 2015 at 6:46 PM, Daniel França > wrote: > > I gave up Bamboo and start using codeship, 100 times easiet > > > > On Fri 23 Jan 2015 at 19:17 Gabriel Patiño wrote: > >> > >> Daniel, > >> > >> Did you make i

Re: Default auth with username but unique email, is it possible?

2015-01-26 Thread Daniel França
There's a solution referred here: http://stackoverflow.com/questions/1160030/how-to-make-email-field-unique-in-model-user-from-contrib-auth-in-django This solution basically override the *clean_email* method of the UserForm, and check if the email is unique, raising an error if it's not. But I rat

Re: Django + Bamboo

2015-01-26 Thread Daniel França
But it was using git, and I'm not on that project anymore anyway. Em Mon Jan 26 2015 at 7:06:54 PM, Cal Leeming escreveu: > I'm almost tempted to say "you should be using git", but that could > turn into a very lengthy thread indeed :) > > Cal > > On Mon,

Re: how to get a link to an absolute hyperlink

2015-02-13 Thread Daniel França
How's the hyperlink saved in the column? If it's a relative one this is what is going to happen, to change that you need an absolute link, i.e: http://google.com On Fri 13 Feb 2015 at 23:40 dk wrote: > this is my template > I do have this address > http://127.0.0.1:8000/mes/show_table/ > and show

Re: RoR dev having trouble with finding best-packages for Django

2015-03-04 Thread Daniel França
4. Have you tried https://www.djangopackages.com/ ? It has some sections with grids that shows several information about each one On Wed 4 Mar 2015 at 20:30 Avraham Serour wrote: > 1 - built in > 2 - buit in > 3 - I like all-auth > 4 - pypi > 5 - go for python 3, unless you need some library tha

Re: RoR dev having trouble with finding best-packages for Django

2015-03-04 Thread Daniel França
... And you can compare On Wed 4 Mar 2015 at 20:33 Daniel França wrote: > 4. Have you tried https://www.djangopackages.com/ ? > It has some sections with grids that shows several information about each > one > On Wed 4 Mar 2015 at 20:30 Avraham Serour wrote: > >> 1 - bu

Re: Global access to request.user

2015-03-27 Thread Daniel França
I don't understand how middlware or filter would help on those cases. Why not only pass the variable where it's needed? On Fri 27 Mar 2015 at 10:18 guettli wrote: > > > Am Donnerstag, 26. März 2015 15:52:07 UTC+1 schrieb Anderson Resende: >> >> You can use middlewares!!! It is a way... >> >> >> >

Re: Implementing multiple user types with Django 1.7

2015-06-05 Thread Daniel França
You can define different groups for each role and assign the users to the groups. Em sex, 5 de jun de 2015 às 11:24, Andreas Kuhne escreveu: > Hi Marcelle, > > You should not use the user profile solution anymore, because you can now > create a custom User model instead. Check for example: > htt

Re: Search Engine using Django-Python

2015-07-06 Thread Daniel França
Hi Manoj, have you tried Haystack? http://haystacksearch.org/ It's a simple API to make a search engine using Django, and you can attach any of the available backends (Solr, Elasticsearch, Whoosh or Xapian). Best, Daniel Em seg, 6 de jul de 2015 às 18:01, Manoj Bawane escreveu: > Hi All, > > I

Re: Django 1.7 tutorial: python manage.py migrate errors.

2014-11-20 Thread Daniel França
If you are using Django 1.7 why don't you use the built in migrations: https://docs.djangoproject.com/en/dev/topics/migrations/ On Fri 21 Nov 2014 at 05:19 Alvin Panugayan wrote: > I'm following the django tutorial online and I'm stuck on the migrate bit > (bottom of the post). > > 1. Do I need t

Re: is there a Django library for AJAX support

2015-01-05 Thread Daniel França
Have you tried Dajax/Dajaxice? http://www.dajaxproject.com/ Em Sun Jan 04 2015 at 2:15:16 PM, Krishnakant Mane escreveu: > Hello all, > I am realy impressed with the Django forms and some additional > enhancements with CrispyForms >

Re: Web based IDE for django

2016-08-16 Thread Daniel França
hmm, not sure if I got what you want...but have you tried cloud9? https://c9.io/ On Tue, 16 Aug 2016 at 07:30 Jani Tiainen wrote: > Hi, > > Just for curiosity, can you point out any web based editor does what > you're asking for, even not Python based? > > To me it sounds that you want to have s

Re: connecting to mssql database

2016-08-17 Thread Daniel França
What errors are you getting? On Wed, 17 Aug 2016 at 14:15 sum abiut wrote: > > Hi, > i am having a very hard time figuring out how to connect to a mssql > database. i've try following this guide but nothing seems to be working. > please help > > http://www.tivix.com/blog/getting-django-working-w

Re: cache.get_or_set : function name is misleading

2016-08-31 Thread Daniel França
But it's okay, isn't it? I mean, *add* is used to add the key if the key doesn't exist. *set* on the other hand, will set the value anyway. In the case of *get_or_set *the set should work like an *add *because it'll be called only in case the key doesn't exist. Or am I missing something? On Wed,

Re: Getting Start Django

2016-08-31 Thread Daniel França
How did you install Django? On Wed, 31 Aug 2016 at 14:17 jsroyal wrote: > Hello guys, > I am newbie in Django and started learning with Standard Documentation > version: > *1.10.I *already Install Django 1.10 and Python 3.4 in Linux Ubuntu 15.04 > But in first phage I got some problem > I ty

Re: Getting Start Django

2016-08-31 Thread Daniel França
I rather recommend you using a virtualenv and install using pip instead http://tutorial.djangogirls.org/en/django_installation/ On Wed, 31 Aug 2016 at 14:50 jsroyal wrote: > > sudo apt-get install python-django-common > Through this command. > > > > -- > You received this message because you are

Re: Por que Django não é tão popular quanto Ruby on Rails?

2015-12-21 Thread Daniel França
It has been answered a few times already https://www.reddit.com/r/webdev/comments/1yxav7/why_is_ruby_on_rails_more_popular_than_django/ https://www.quora.com/Why-is-Django-not-as-popular-as-Ruby-on-Rails Anyway, Django is quite popular as well :) Em seg, 21 de dez de 2015 às 14:25, Jan Palach e