Bizarre QueryDict behavior grouping json data into a single key

2011-06-11 Thread Andres
I'm experiencing a really bizarre behavior when using the test client in django. I'm using a POST to send data to my django app. I usually do this from an iPhone app and/or a test html form. On the server side, this is how I handle it: def handle_query(request): print request q

Re: Bizarre QueryDict behavior grouping json data into a single key

2011-06-11 Thread Andres
On Jun 11, 3:59 pm, bruno desthuilliers wrote: > On 11 juin, 14:36, Andres wrote: > > > > > > > > > > > I'm experiencing a really bizarre behavior when using the test client > > in django. > > > I'm using a POST to send data to my

Consulta de campo duplicado en la base

2017-10-26 Thread andres
Hola una consulta, como hago un metodo para que se conecte y consulte a la db si el nro de doc ya esta registrado.. -- 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

Re: GUI builder for django

2010-04-21 Thread andres osinski
No, and it's not a good idea to do WYSIWYG development for HTML. HTML is not a format that produces static content; it varies depending on screen fonts, browser, and platform, and getting that right means sticking to relative layout, making content flow, and taking care of quirks. WYSIWYG editors d

Setting up spatialite

2010-04-25 Thread andres osinski
Hi everyone. I've been trying (unsuccessfully) to get SQLite support for Geodjango running on my machine. I havd Django 1.1 and a SQLite database where I'm trying to sync my models. I installed spatialite from Ubuntu's repository, built SQLite and pysqlite 2.6.0 from source, and added the Google Ma

Re: automatically fill in some fields of a form, storing authenticated user

2006-09-25 Thread Andres Luga
low'] else: new_follow = {} for k in dict(follow).keys(): new_follow[ str(k) ] = False kwargs[ 'follow' ] = new_follow return kwargs I'm really hoping that this topic has a small chapter in upcoming Django book... ;) Regards, Andres --~--~-~--~~

Full table fetches behind the scenes

2006-11-03 Thread Andres Luga
ies were executed: SELECT FIRM (*) SELECT PERSON(*) - 4 times [...] SELECT `django_session`.`session_key`,. SELECT `auth_user`.`id`,... SELECT FIRM (*) SELECT PERSON(*) - 4 times [...] SELECT `auth_message`.`id` Any ideas what might be wrong? How to find the place in blame? Regards, Andres

Re: date format other than YYYY-MM-DD

2007-01-12 Thread Andres Luga
Hi, Any idea if newforms simplifies this? Regards, Andres On 9/29/06, DavidA <[EMAIL PROTECTED]> wrote: > I also ran into this problem so I did it that hard way: I created a > custom model DateField and a custom form DateField. (I call them > RelaxedModelDateField and Relax

Authentication, error "DoesNotExist at /accounts/login/", part 2

2006-08-14 Thread Andres . Luga
Hi, the following happened to me also: 1. Created a new site 2. Removed example.com from the list of sites 3. Tried to use authentication and got the error "DoesNotExist at /accounts/login/" 4. Deleted and rebuilt the database, authentication works. Regards, Andres blue_beastie wrote

Generic views and manipulating data before saving

2006-08-26 Thread Andres Luga
e a more convenient way for debugging and examining the data than raise Http404, str(new_data)? Regards, Andres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Filter "date" and FormFieldWrapper attribute error

2006-08-26 Thread Andres Luga
issing? Any help would be greatly appreciated. Regards, Andres --~--~-~--~~~---~--~~ 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 unsu

Re: Uploading Files

2006-09-10 Thread Andres Luga
Hi, relarted to this topic. When using generic views, how to achieve that the file doesn't get overwritten? For example a form for editing a person: the image file field has no default data and when I only change the name the image is blanked. It seems I missed something.. Regards, A

Barcode

2022-02-01 Thread Andres Quilindo
Does anyone have experience with UCC/EAN-128 barcodes? I am using a javascript barcode js library with django to implement the barcode but it is generating errors when reading if anyone knows any library or api that can be used that complies with the UCC/EAN-128 parameters that can provide me w

Re: INSTALACION PYTHON / DJANGO EN DEBIAN

2022-07-12 Thread Andres Bermeo
Intenta primero actualizar los repositorios del servidor... en las versiones posteriores a Debian 11... Debian no tenía soporté para Python 3... https://es.joecomp.com/how-install-python-3 utiliza este con la última versión de Python. El martes, 12 de julio de 2022 a la(s) 08:53:33 UTC-5, gli

Re: Adding first_name and last_name to django registration

2012-01-28 Thread Andres Reyes
The django.contrib.auth User model already contains first_name and last_name fields so you don't need a UserProfile for that. Also the view that handles the registration takes a form_class that parameter that you can pass in the urlconf, you would only need to subclass the RegistrationForm, add yo

Re: Django Admin completely empty

2012-01-30 Thread Andres Reyes
Do you have permissions on the models you want to see? You can create a new superuser with python manage.py createsuperuser 2012/1/30 darwin_tech : > Hi, > > On my development server my Django Admin works as expected, showing > all my > models and the auth models. However, on the production ser

Re: Dynamic runtime modeling: which is the best choice?

2012-01-31 Thread Andres Reyes
Are you sure you need a new model for every shape your user inserts? Most likely you need to design a generic models in which you would insert new rows for every shape. I mean generic in the sense that it is designed to contain different shapes not any special Django or Python stuff 2012/1/31 Ale

Re: Access denied - hostname is percent character ('%')?

2012-02-17 Thread Andres Reyes
Saying that the database doesn't exists would be giving to much information to potential atackers triying to connect 2012/2/17 Ishmael : > Thanks for the reply.  The solution to the problem was excruciatingly > simple.  I accidentally capitalized the name of the database, when the > actual name

Re: "model_name" object has no attribute '_adding'

2012-02-28 Thread Andres Reyes
I don't remember reading anything about an "_adding" attribute in the documentation. However, if you want to check for an INSERT vs an UPDATE just check for the existence of a primary key def clean( self ): from django.core.exceptions import ValidationError if self.pk is None: (do th

Re: "model_name" object has no attribute '_adding'

2012-02-28 Thread Andres Reyes
I'm curious as to where is this in the documentation. I think this is a private attribute so it shouldn't be depended upon 2012/2/28 akaariai : > On Feb 28, 6:30 am, dizzydoc wrote: >> Hi django users, >> >> I have just migrated my projected from django 1.2.7 to django 1.3. >> >> I am receiving t

Re: Problems getting started

2012-03-07 Thread Andres Reyes
For me, the main reason to use virtualenv has nothing to do with security or anything like that, is the convenience of having different projects with different sets of requirements not interfering with each other 2012/3/7 backdoc : > I've never set up virtualenv, so I can't speak to that.  But, ho

Error creating project from the Command Prompt

2012-06-07 Thread andres orozco
I've installed django 1.4 and i want to test the installation, i don't know too much about this cuz' i'm just learning, but i tried it using the windows 7 command prompt but i've got this error http://i.imgur.com/znZGW.png could someone help me please? -- You received this message because you ar

Re: Error creating project from the Command Prompt

2012-06-08 Thread andres orozco
Oh okay thank you so much El jueves, 7 de junio de 2012 03:01:01 UTC-5, Jani Tiainen escribió: > > 7.6.2012 10:29, andres orozco kirjoitti: > > I've installed django 1.4 and i want to test the installation, i don't > > know too much about this cuz' i'

ForeignKeyAutocompleteAdmin

2011-08-29 Thread JAIME ANDRES
Hi, i'm starting with django. At this moment i need to make my form's foreign keys searchable, it seems that what works form me is the https://github.com/django-extensions/django-extensions using the ForeignKeyAutocompleteAdmin function. The best simple example i'd found is this: http://code.google

Re: Admin Site appending letter "s" to end of each model\table name

2011-09-10 Thread Andres Reyes
Actually the solution is to define a verbose_name and a verbose_name_plural in your model's Meta class MyModel(models.Model): field = models.CharField(max_length=200) class Meta: verbose_name = 'My model's name' verbose_name_plural = 'My model's name in plural context' E

Re: request.method not working as expected

2011-09-20 Thread Andres Reyes
I believe that the best practice is to always use the {% url %} template tag and not hardcoding your URL's 2011/9/20 Fabio Natali > On 09/20/2011 07:15 PM, dm03514 wrote: > >> Fabio in your dev server output is it saying the type of request is >> get? >> ARe you accessing "/method/" through your

Re: Comment Framework and Session Variables

2011-09-21 Thread Andres Reyes
One possible way would be to create your own template tag and use it instead of the provided one. I did it recently and it's not that complicated, you should use the code for the current one as an starting point and just extend it to accept some custom parameter you provide, in this case the email

Re: Internationalization

2011-09-22 Thread Andres Reyes
If you could provide more information as to what you don't understand and what have you tried so far we could be of more assistance 2011/9/22 nadae ivar > i check it but not undestand > > On Sep 22, 10:40 am, Maksymus007 wrote: > > and of course you did check django documentation under > intern

Re: Catching the autogenerated admin post

2011-09-29 Thread Andres Reyes
You could try doing your processing in the save_model method of ModelAdmin https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model 2011/9/29 bazaarsoft > Hello - I'm new to Django and love what I see so far. I have the need > to "catch" the admin post

Re: Looking for a job in the Arctic Circle

2011-09-30 Thread andres . osinski
You can also go to the (literal) polar extreme and consider something in Antarctica or Tierra del Fuego, in Chile or Argentina. There are many countries that need qualified technical staff for their research/military bases in Antarctica. As for Chile and Argentina, both require highly qualified

Re: maultiple .js files for debug and one minimized .js for production

2011-11-08 Thread Andres Reyes
I've been using django-compressor and totally recommend it https://github.com/mintchaos/django_compressor 2011/11/8 Gelonida N > Hi, > > > I'm having an rather weak (CPU) server accesible over a rather slow > network. > > Therfore my plan is to use > multiple readable debuggable css files for

Re: Get the current url in django template

2011-11-10 Thread Andres Reyes
To use the request object in a template you need django.core.context_processors.request in your TEMPLATE_CONTEXT_PROCESSORS 2011/11/10 Martin Pajuste > If you need something like " > http://example.com/music/bands/the_beatles/?print=true"; try > {{request.build_absolute_uri}} > > https://docs.d

Re: Need help upgrading old view/url to new syntax...

2011-11-10 Thread Andres Reyes
See https://gist.github.com/1356199/bd1af5e81d51ef32a3f4aa29a7a9120c9a8ffe85 The problem is that you're overriding get_queryset when you should be overriding get_object 2011/11/10 Micky Hulse > Hello, > > I am in the process of upgrading this "old" functional code: > > urls_old.py: >

Re: Need help upgrading old view/url to new syntax...

2011-11-10 Thread Andres Reyes
t; template code to match the variable name change > {{member.get_user_profile}} and everything is working perfectly! > > I am not sure why the old functional view did not exhibit the same > variable name conflict. > > Anyway, thanks again Andres! > > Cheers, > M > > --

Re: Automatically direct unauthenticated users to homepage

2011-11-15 Thread Andres Reyes
You could also use the login_required decorator with the method decorator in the dispatch method of your view 2011/11/15 CrabbyPete > Ivo, > > Thank you. I was not using the @login_required decorator. I was using > generic classes like FormView and TemplateView but I see that in order > use logi

Re: Internationalization and localization

2011-12-06 Thread Andres Reyes
At the moment i don't know of any official support for that kind of internationalization from Django, there are a number of different Packages that try to address the problem with some level of success. In one project of mine i used the approach described in http://snippets.dzone.com/posts/show/297

Re: urlresolver and custom Site model?

2011-12-07 Thread Andres Reyes
Also you can use FORCE_SCRIPT_NAMEin your settings 2011/12/7 Daniel Roseman > On Wednesday, 7 December 2011 12:49:47 UTC, aleksandra...@googlemail.comwrote: >> >> Hello everyone >> >> Becuase I do not use django database at a

Re: How do I prevent messages getting cached?

2011-12-19 Thread Andres Reyes
You could use the cache template tag https://docs.djangoproject.com/en/dev/topics/cache/#template-fragment-caching And cache only certain parts of your template and not all of it 2011/12/18 Nathan Geffen : > Hi > > I am using per-view caching in version 1.3 and would prefer to avoid > caching in

Re: Using STATIC_URL in CSS/JS files?

2012-01-02 Thread Andres Reyes
If you're serving your media from the same domain as your CSS i'd use relative paths 2012/1/2 Christophe Pettus : > > On Jan 2, 2012, at 5:56 PM, Victor Hooi wrote: >> E.g. I have a CSS file that points to a PNG sprite, and I'd like a way to >> get it to point to {{ STATIC_URL}} without hardcodin

Re: Model for images with thumbnails

2012-01-06 Thread Andres Reyes
I've found that the most flexible approach is the one taken by http://thumbnail.sorl.net/ 2012/1/6 Иван Иванов : > На Fri, 6 Jan 2012 07:08:59 -0800 (PST) > francescortiz написа: > >> you can try https://github.com/francescortiz/image > > or you can try https://github.com/SmileyChris/easy-thumbna

Re: How to encrypt DateTimeField in models.py ?

2012-01-09 Thread Andres Reyes
Looking at the log it seems your underliying database has DATE type for the column when it should be a VARCHAR or the like 2012/1/9 Nikhil Verma : > Hi > > I am having a requirement that i have to encrypt some of the fields in a > table. > I am using Django 1.3.1 and postgres 9.1. I am referring t

Re: Class-Based Generic Views (CreateView) - field exclusions and defaults

2012-01-12 Thread Andres Reyes
What are you triying to achieve? 2012/1/12 Juergen Schackmann : > can really no one help? i am really stuck here at the moment > > -- > 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.goog

Re: Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2?

2012-01-12 Thread Andres Reyes
You mean that the webserver that Django itself recommends in https://docs.djangoproject.com/en/dev/howto/deployment/ is not a good choice? 2012/1/12 Stuart Laughlin : > > On Thursday, January 12, 2012 10:09:13 AM UTC-6, Javier Guerra wrote: >> >> On Thu, Jan 12, 2012 at 9:54 AM, Stuart Laughlin >

Re: Need help with userena - assign user to group at signup

2012-01-19 Thread Andres Reyes
I don't think you need two different login forms, it looks more like a UserProfile with field in it saying something like EMPLOYEE_CHOICES = ( (1, 'employer'), (2, 'employee'), ) employee_type = models.IntegerField(choices=EMPLOYEE_CHOICES) 2012/1/19 Jesramz : > I would like to separate

Re: Need help with userena - assign user to group at signup

2012-01-20 Thread Andres Reyes
What do you mean with the employee choosing the employer option? You normally don't give a choice in the frontend, you just make your choice in the backend depending what your database says 2012/1/19 Jesramz : > > > The problem with that, if I'm understanding correctly, is that a > person who is m

Re: Circular import problem

2013-04-11 Thread andres . osinski
You should always consider that circular imports may indicate problems with how you structured your applications and/or models, however, if you're left with no choice, you can have an import statement inside a function, which generally solves most of these issues. Enviado desde mi BlackBerry de

Admin for proxy model for custom User

2013-05-28 Thread Andres Osinski
Hi everyone, I've created a custom User model and reated a proxy for it, like this: class User(AbstractUser): USER_KINDS = ( ('d', 'doctor'), ('p', 'patient') ) kind = models.CharField(max_length=2, choices=USER_KINDS) class DoctorManager(BaseUserManager): def get

Re: Admin for proxy model for custom User

2013-05-29 Thread Andres Osinski
I omitted the code from the sample, but I do have that. The issue seems to be that when the admin page loads, it's neither hitting the deafault get_queryset() method in the ModelAdmin, not hitting the proxy model's default manager methods. This is likely to be a bug. On Tue, May 28, 2013 at 11:35

Re: problem installing django 1.3 in virtualenv

2011-04-30 Thread Andres Lucena
El 30/04/11 18:06, shofty escribió: > recreated the virtualenv from scratch totally, still got the same > result. what am i doing wrong here? really cant work it out. Exactly what is the output? What is the content of $HOME/.pip/pip.log? $ cat $HOME/.pip/pip.log Also, I don't understand what y

Re: django help

2011-04-30 Thread Andres Lucena
El 30/04/11 14:56, Marcos Moyano escribió: > Read the static-files docs > Also read this document: http://www.catb.org/~esr/faqs/smart-questions.html > On Sat, Apr 30, 2011 at 4:14 AM, Sunil Chugh > wrote: > > how can i used static_root > > -- > Yo

multiple instances of form (with distinctive identifiction) on same page?

2011-05-20 Thread Pascal Andres
hi there, first poster and django beginner here.. I've been unsuccessfully looking for an answer to this for a while now, so I'm finally posting it myself. I'm writing an app that allows users to place bets on soccer matches. several matches are listed on the same site consisting each of two oppo

Django solved tutorial for download??

2011-06-08 Thread Pardini Andres
Hi guys, I am looking for django tutorial solved, for downloading If anyone has a link, please share it :) Cheers!! -- 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 unsubsc

Re: How to add CSRF to context when using test client???

2011-06-27 Thread andres ledesma
k, I get a 403: which refers to an invalid CSRF token key. If you managed to overcome this problem, please let us know. So far, I decided not to use c = Client(enforce_csrf_checks=True) but this is not a nice solution, is it? Best! -Andres On Jun 10, 8:02 pm, Matteius wrote: > Yes I Have this

Re: widgets js

2011-06-28 Thread Andres Pardini
Hi Can you can access to the javascript calendar code from browser?? -- 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

Re: More than one project using the same database

2011-06-30 Thread andres . osinski
In theory, unless you've disabled transactions, the database should be able to manage all contention issues. Enviado desde mi BlackBerry de Movistar (http://www.movistar.com.ar) -Original Message- From: ALJ Sender: django-users@googlegroups.com Date: Thu, 30 Jun 2011 04:46:15 To: Djang

Re: i save text with html in djanfo admin and when out its ilegible

2011-07-04 Thread Andres Pardini
2011/7/4 Kase > Works!! thx > > but i dont like put ever > > i dont think its right save html tag in database unless its a blog like webpage,,, my opinion -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: i save text with html in djanfo admin and when out its ilegible

2011-07-04 Thread Andres Pardini
Hi again, 2011/7/4 Kase > me too.. but i dont know other options for format text > i follow this tutorial for rich text editor http://lazutkin.com/blog/2011/mar/13/using-dojo-rich-editor-djangos-admin/ when you output the text put something like this: {{ notice.title }} {

Re: Debugging Why CSS File Will Not Load

2011-02-03 Thread Andres Lucena
> MEDIA_URL = 'http://steamboy:8082' > First, I'd check if the apache is working, if you go to http://steamboy:8082/PageStyle.css Do you see the CSS? Also, what you see when you see the HTML source code? Is that URL? See you, Andres > > PageStyle.css is set to displa

Re: user full name in template

2011-02-04 Thread Andres Lucena
On Fri, Feb 4, 2011 at 6:24 AM, Bobby Roberts wrote: > here's what i'm trying > > from django.contrib.auth import authenticate, login, logout > #import django user modules > from django.contrib.auth.models import User > > def ShowMainMenu (request): >        fullname=User.first_name + ' ' + User.l

Passing variables to template filters

2011-02-04 Thread Andres Lucena
s: {% block title %}{% if not title %}{{SITE_NAME}}{% else %}{{title}}{% endif %}{% endblock %} But it's pretty ugly... Is there anyway to passing a variable to a template filter?? Thanks, Andres -- You received this message because you are subscribed to the Google Groups "D

Re: user full name in template

2011-02-04 Thread Andres Lucena
On Fri, Feb 4, 2011 at 10:23 AM, Ivo Brodien wrote: > >> Don't forget the login_required decorator, because if an anonymous >> user try to get that page he will get an exception (I think, didn't >> try that) > > No, they will be redirected to login and after login they come back to the > original

Re: Redirecting to personal pages.

2011-02-04 Thread Andres Lucena
On Fri, Feb 4, 2011 at 10:59 AM, balu wrote: > Hi all :) > > I'm trying to create a website application using django's built in > authenticaiton app. I had customized the login, logout, signup... > template. But how to customize personal page which will be redirected > after login confirmation. Wh

Re: Passing variables to template filters

2011-02-04 Thread Andres Lucena
On Fri, Feb 4, 2011 at 11:07 AM, Tom Evans wrote: > On Fri, Feb 4, 2011 at 9:53 AM, Andres Lucena wrote: >> Hi, >> >> In my base.html I'm trying to do this: >> >>        {% block title %}{{title|default:"{{SITE_NAME}}"}}{% >> endblock %} &g

Re: admin users permissions question

2011-02-08 Thread Andres Lucena
idea about how to do this. > > Any hint or link to a tutorial/doc would be very helpful, so far I can > only list all posts for all users (in the admin of course). > Found this: http://www.alextreme.org/drupal/?q=node/600 Hope it'll help. See you, Andres -- You received this messa

Re: Calling out for Help!

2011-02-08 Thread Andres Lucena
en/dev/howto/deployment/ http://www.djangobook.com/en/beta/chapter21/ Hope it isn't that difficult, you can see the configs from the old server, right? Good luck! Andres -- You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Ordering/sort_by from a custom method

2011-02-08 Thread Andres Lucena
_score = LinkGetTopScores() So of course this isn't working because of the self.episode stuff... But I've to filter somehow by episode (the ForeignKey), and I don't know how. Is there anyway of doing this?? What I'm doing is right or there would be an easier way of doing this

Re: Calling out for Help!

2011-02-08 Thread Andres Lucena
On Tue, Feb 8, 2011 at 6:11 PM, Tom Evans wrote: > On Tue, Feb 8, 2011 at 5:01 PM, Dev@CB wrote: >> Tom, why are you discouraging me? >> > > My intention was not to discourage you; it was to encourage you to ask > a sensible question in a legible manner. If you take slight at that, > then I have

Re: Ordering/sort_by from a custom method

2011-02-09 Thread Andres Lucena
On Tue, Feb 8, 2011 at 6:00 PM, Andres Lucena wrote: > Dear Gurus, > > I've made a custom method for getting the score (from django-voting) > for a giving Model: > > class Link(models.Model): >    episode = models.ForeignKey("Episode", related_name="links

Re: Ordering/sort_by from a custom method

2011-02-10 Thread Andres Lucena
ng.googlecode.com/svn/trunk/voting/managers.py Thanks for the help! Andres > > Alex > > On Feb 9, 8:49 am, "Casey S. Greene" wrote: >> I haven't used django-voting but it sounds to me like you want something >> like: >> Link.objects.aggregate(Avg(s

Re: Ordering/sort_by from a custom method

2011-02-10 Thread Andres Lucena
On Thu, Feb 10, 2011 at 2:52 PM, Alex Robbins wrote: > Do you want the episode with the highest individual score, or the > highest average score? > I want the links (within that episode) sorted by highest score. (Sorry for no making it clear before) Thank you, Andres > Alex >

Re: Customize flatpage

2011-02-13 Thread Andres Lucena
name.models import ExtendedFlatPage Good luck, Andres -- 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+unsub

Re: Login, Password Recovery, etc

2011-02-13 Thread Andres Lucena
but the two seems to be fine) Hope this is what you're looking for. See you, Andres -- 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

Re: Customize flatpage

2011-02-13 Thread Andres Lucena
changing-the-original-django-app Good luck, Andres -- 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+unsubsc

Re: Ordering/sort_by from a custom method

2011-02-17 Thread Andres Lucena
then is with SQL, something similar to this and the get_top method: http://stackoverflow.com/questions/544597/problem-ordering-by-votes-with-django-voting Thank you for your help Alex. Bye, Andres > > Alex > > On Feb 10, 8:54 am, Andres Lucena wrote: > > On Thu, Feb 10, 2

Re: Help required :(

2011-02-21 Thread Andres Lucena
se , can someone tell me how to proceed? > Probably if your application is well coded you could import it and use it in Django... But again, we don't know what your application is about Greetings, Andres -- You received this message because you are subscribed to the Google Groups &quo

Re: jquery toggle in form from model

2011-03-09 Thread Andres Lucena
ou can try in StackOverflow... Also, maybe what you're looking is this one: http://api.jquery.com/checked-selector/ And: http://api.jquery.com/checkbox-selector/ See you, Andres -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Help using internationalization feature

2011-03-16 Thread Andres Lucena
y nice ;) http://code.google.com/p/django-rosetta/ Bye, Andres -- 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 djang

Re: Apache2 with static file

2011-04-05 Thread Andres Lucena
ou want that. If you want to serve statics from the development server, then you should read: http://docs.djangoproject.com/en/dev/howto/static-files/ See you, Andres -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

django-nose: How to provide nose parameters from the command line?

2014-09-10 Thread Andres Riancho
List, I've been using django-nose for a long time but now I'm trying to specify command line parameters for "python manage.py test" that should be passed to "nose" and can't find out how. So, the question is: How do you pass nose parameters from the command line? In an early blog post

Re: Pluggable crowdfunding django apps

2014-04-15 Thread Andres Osinski
I have a small crowd funding app that I made bit too long ago, which is useful by itself but could easily be modularized for more generic use cases. Shoot me an email later to remind me to upload the code to GitHub. El abr 2, 2014 6:51 PM, "Raymond Besiga" escribió: > Hello community, > > Been br

django 1.10.2 mysql 5.6.34 which connector?

2016-10-13 Thread Andres Marin
Dear all, I'm trying to learn about django, follow the documentation, in my first: python manage.py migrate all time get this error: File "/usr/local/lib/python3.5/site-packages/mysql/connector/django/operations.py", line 223, in bulk_insert_sql return "VALUES " + ", ".join([items_sql]

Re: django 1.10.2 mysql 5.6.34 which connector?

2016-10-13 Thread Andres Marin
tall *python-dev libmysqlclient-dev* > > Don't use > 'ENGINE': 'mysql.connector.django', > > USE > 'ENGINE': 'django.db.backends.mysql', > > I hope help you > > > > Em quinta-feira, 13 de outubro de 2016 19:4

Problem Django.19 upgrade and circular imports

2016-03-03 Thread Andres Osinski
Hi everyone! I'm having an issue with circular imports in Django 1.9 that I have not seen in my app, which had been running 1.7 before. I have a Django app in apps.common, which has its associated apps.common.models too. No imports on __init__.py or anything of the sort. When I my app in apps.acco

Re: Problem Django.19 upgrade and circular imports

2016-03-04 Thread Andres Osinski
latest versions of 1.7 and 1.8. I'll try with older versions in 1.8 and report back. On Thu, Mar 3, 2016 at 10:11 PM, James Schneider wrote: > On Thu, Mar 3, 2016 at 3:28 PM, Andres Osinski > wrote: > >> Hi everyone! I'm having an issue with circular imports in Django 1.9 th

Re: Problem Django.19 upgrade and circular imports

2016-03-08 Thread Andres Osinski
l the imports from 'apps.X' to 'X'. Does Django support apps that reside in submodules or have I been depending on broken behavior? On Fri, Mar 4, 2016 at 5:16 PM, Andres Osinski wrote: > The thing is that in my case, I have a model in the 'accounts' app wh

Re: Error message

2009-12-17 Thread Andres Vargas - zodman
its because you set DEBUG=False and on your templates dir not exist the file 500.html On Thu, Dec 17, 2009 at 7:34 PM, reactosguy wrote: > I get this message every time I go on http://localhost:8000/ with the > Django server running: > > Traceback (most recent call last): > >  File "C:\Python26\

posible bug

2008-01-30 Thread Andres Vargas - zodman
I have configure the flatpages with his html template on my template_dir/flatpages/default.html When run python manage.py runserver on my settings DEBUG=True the flatpage show right but change a DEBUG=False i get this output: Traceback (most recent call last): File "/usr/lib/pytho

Re: FckEditor vs TinyMCE

2008-02-01 Thread Andres Vargas - zodman
im use meteora http://meteora.astrata.com.mx and work excelente for my djangoadmin interface. http://meteora.astrata.com.mx/demo/editor Cull escribió: > Thanks Jay, > > That's a huge help. Do you know if there's any code for doing text > versioning? We don't need a full blow wiki or CMS, but

problem with runserver

2008-02-09 Thread Andres Vargas - zodman
Im work fine, time ago and on one moment i have this error: Exception happened during processing of request from ('127.0.0.1', 34110) Traceback (most recent call last): File "/usr/lib/python2.4/SocketServer.py", line 222, in handle_request self.process_request(request, client_address) Fil

Re: Installation script?

2012-09-03 Thread Andres Reyes Monge
Take a look at this project https://github.com/dcramer/logan On Monday, September 3, 2012 6:39:41 AM UTC-6, Carsten Agger wrote: > > I've created a Django web service consisting of two separate sites, by > default running on the same server, which implements a "document broker" > service capabl

Re: FactoryBoy & ManyToManyField

2012-11-20 Thread Andres Reyes Monge
The simplest would be to class ATestCase(TestCase): def setUp(self): super(ATestCase, self).setUp() self.user = UserFactory() self.workplace = WorkplaceFactory() self.workplace.employees_set.add(self.user) def test_foobar(self): # how do I add sel

Speeding up test database creation

2012-11-26 Thread Andres Reyes Monge
The tutorial uses a sqlite file database not a in memory database, try omitting the name parameter and it should speed things up -- 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

Re: Django hosting companies

2013-01-29 Thread Gustavo Andres Angulo
There is a similar solution to Heroku, called nuagehq.com regards On Tue, Jan 29, 2013 at 8:17 AM, francislutalo wrote: > Anyone with an idea of which are the best companies to host my django > applications? > > > > Thank you, > Regards > francislutalo > > -- > You received this message becaus

Re: connecting Django to MySQL

2015-02-12 Thread Gustavo Andres Angulo
On Thu, Feb 12, 2015 at 8:18 AM, Ulisses Cruz wrote: > Hello > I'm trying to connect my Django project with the MySQL database. > So I tryied to download the MySQL-python package with the command: > > *pip install MySQL-python* > > but I'm having the error: > > *error: Unable to find vcvarsall.ba

Re: Crear web apis con Django 1.6

2017-03-27 Thread Gustavo Andres Angulo
Hola Ariel, No es necesario migrar a la versión 1.7 para usar rest_framework, pero lo que si debes hacer es revisar la versión de rest_framework que soporta django 1.6 (en teoría debe ser la 3.0.0), Frente a la metodología hay bastante información http://www.vinaysahni.com/best-practices-for-a-pra

Re: Interfaz Gráfica (Frontend)

2020-04-17 Thread Gustavo Andres Angulo
Hola, puedes seguir el tutorial usando en el Proyecto de Django Girls, https://tutorial.djangogirls.org/es/ Allí puedes apoyarte con la documentación de Django. On Fri, Apr 17, 2020 at 7:56 AM Denilson Antonio Avellan < denilson.d...@gmail.com> wrote: > Hola comunidad estoy empezando con Django

Re: There's any framework for "bussiness app (ERP)" built in Django?

2016-01-04 Thread Gustavo Andres Angulo
Also you can try Tryton. Best. Gustavo. On Mon, Jan 4, 2016 at 3:30 PM, Hildeberto Mendonça wrote: > You can use Odoo for ERP if you want to keep using Python. For everything > else, use Django. > > On Mon, Jan 4, 2016 at 8:02 PM, Luis Zárate wrote: > >> I know https://github.com/django-erp/d

Problem at server startup

2015-03-27 Thread Sebastian Andres Guerra Montecino
Hi everyone, i'm just started on django... and i have a problem :(. I install django on windows (with Setuptools and PIP, according to the documentation), create a new project, use migrate but throws me a mistake: C:\Users\Kompressor\Documents\lalolando>python manage.py runserver 8080 Performing

The best database for django

2017-07-10 Thread DEIBER ANDRES RINCON ROJAS
Hi to everybody, I'm developing an web application using Python and Django and it requires storage of excel data, data volume high and still I don't have a clear idea about what database manager implement, Could anyone help me with some suggestions please?. Thanks for your time -- You received