Re: Exciting Opportunity: Join Our Django WhatsApp Bulk Messaging Project!

2024-02-18 Thread Juan Fernando Arango Uribe
I’m interested Enviado desde mi iPhoneEl 18/02/2024, a la(s) 11:48 a. m., SURAJ TIWARI escribió:🚀 Join Our Django WhatsApp Bulk Messaging Project!👋 Hello everyone,Are you looking for an exciting opportunity to gain hands-on experience in Django development? Do you want to work on a meaningful pro

Database issue with Django 4.1

2022-08-24 Thread Fernando Villaça
se) last_modified = models.DateTimeField(auto_now_add=True) liked_by = models.ManyToManyField( settings.AUTH_USER_MODEL, related_name="liked_posts", blank=True ) objects: PostManager = PostManager() The query raising the exception: posts = Post.objects.fetch_all_posts(request_

RES: Help

2022-02-02 Thread Fernando Jover
variable Fernando Jover <leticiasho...@gmail.com> schrieb am Mi., 2. Feb. 2022, 16:26:Hi guys! i am learn Pythonand Pycharm show me this: raise ImproperlyConfigured(django.core.exceptions.ImproperlyConfigured: Requested setting EMOJI_IMG_TAG, but settings are not configured. You must

Help

2022-02-02 Thread Fernando Jover
Hi guys!  i am learn Pythonand Pycharm show me this: raise ImproperlyConfigured(django.core.exceptions.ImproperlyConfigured: Requested setting EMOJI_IMG_TAG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure()

Re: help on creating user profile using drf

2020-07-26 Thread Fernando Hernandez
I think the issue is here instance.profile will be None first time the CustomUser is created, you need to assign the created Profile to the instance and then save the user [image: image.png] try this if created: instance.profile = Profile.objects.create(user=instance) instance.save() On

Re: weird memory error on Centos7

2019-12-05 Thread Fernando González Cisneros
thanks but i already did it, and the error is still there...i just have a question, does geodjango has support gdal 3.0? El jue., 5 dic. 2019 a las 17:13, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > In your case use yum to get thoses package > > On Fri, 6 Dec 2019, 00:12 DAN

weird memory error on Centos7

2019-12-05 Thread Fernando González Cisneros
Hello, having some trouble here. I'm developing an app using the postgis backend in django, i'm releasing it using an apache server on Centos 7, i'm using mod_wsgi for python 3.6 and i've already published a test "hello world" app without trouble, however when i try to publish my app a 500 inte

Re: How to convert files from .bin to .png with Python or Django

2019-07-05 Thread Fernando Garrido Villalobos
Aldian F. The .bin files have content of data in binary format that was copied from a disk to this output file El miércoles, 3 de julio de 2019, 18:52:35 (UTC-5), Fernando Garrido Villalobos escribió: > > How to create a function that have like argument the path of a .bin file > an

How to convert files from .bin to .png with Python or Django

2019-07-03 Thread Fernando Garrido Villalobos
How to create a function that have like argument the path of a .bin file and returns a .png file ... I need your help, thank you so much. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Work from home opportunites

2019-02-22 Thread Fernando Villegas
I can help you with your projects I have the experience on the field of the industry medical devices 13485, aerospace 9100, automotive 16949). I know about design, processes, regulations and systems. Also I know python and django, java and SQl. Best regards. On Fri, Feb 22, 2019, 4:40 PM Motaz Hej

Re: Django - using intermediate user group model

2018-09-24 Thread Fernando Balmaceda
gt; (something like that: User [1] -- [N] Enrollment [N] -- [1] Group)? Then, > the answer in this gist here <https://gist.github.com/jacobian/827937>. > > > W dniu piątek, 21 września 2018 20:16:05 UTC+2 użytkownik Fernando > Balmaceda napisał: >> >> Hi everyo

Django - using intermediate user group model

2018-09-21 Thread Fernando Balmaceda
Hi everyone! I am trying to add a foreign key in a model to the table intermediary between User and Group. Something like this: from django.db import models from django.contrib.auth.models import User class Enrollment(models.Model): user_groups = models.ForeignKey(User.groups.through,

Re: Readonly ModelChoiceField of type in model foreignkey

2018-09-19 Thread nelson fernando garcia gomez
tried appending the lines I gave you, not replacing the last > line? (both disabled and readonly) > > W dniu środa, 19 września 2018 15:47:16 UTC+2 użytkownik nelson fernando > garcia gomez napisał: >> >> This only disables it but internally it receives data this makes th

Re: Readonly ModelChoiceField of type in model foreignkey

2018-09-19 Thread nelson fernando garcia gomez
a possible solution I see is to change the field to CharField() type, here is a new problem: the field is printed the pk that is related as then how can I read that pk to show the name and not that pk in the template? El martes, 18 de septiembre de 2018, 13:58:26 (UTC-5), nelson fernando

Re: Readonly ModelChoiceField of type in model foreignkey

2018-09-19 Thread nelson fernando garcia gomez
xcluded)? Can you, please, clarify what do you want to achieve? > Have you tried appending the lines I gave you, not replacing the last > line? (both disabled and readonly) > > W dniu środa, 19 września 2018 15:47:16 UTC+2 użytkownik nelson fernando > garcia gomez napisał: >> &

Re: Readonly ModelChoiceField of type in model foreignkey

2018-09-19 Thread nelson fernando garcia gomez
s['disabled'] = True > at the end of your __init__(..). > > > W dniu wtorek, 18 września 2018 20:58:26 UTC+2 użytkownik nelson fernando > garcia gomez napisał: >> >> Hola estoy tratando en mi formulario (formsModel) implementar el atributo >> de *readonly* a

Re: Readonly ModelChoiceField of type in model foreignkey

2018-09-19 Thread nelson fernando garcia gomez
s['disabled'] = True > at the end of your __init__(..). > > > W dniu wtorek, 18 września 2018 20:58:26 UTC+2 użytkownik nelson fernando > garcia gomez napisał: >> >> Hola estoy tratando en mi formulario (formsModel) implementar el atributo >> de *readonly* a

Readonly ModelChoiceField of type in model foreignkey

2018-09-18 Thread nelson fernando garcia gomez
Hola estoy tratando en mi formulario (formsModel) implementar el atributo de *readonly* a una foreignkey (ModelChoiceField) pero no es posible alguna ayuda por favor GRACIAS así lo estoy haciendo: class CostoForm(forms.ModelForm): """ Edicion de Costos con formset. """ class Meta: model = C

Re: Change the default route of a view

2018-08-04 Thread Fernando Miranda
Andréas, that's exactly what I want, but it does not show up in swagger or api docs. Another question I am still is whether by good practices and or convensions the restful pattern should I always pass the id in the url to detail, or can I do what I am wanting, anyone would know? Em terça-feira

Re: Change the default route of a view

2018-07-30 Thread Fernando Miranda
and the UserProdilfChangeSerializer > (or whatever you called your serializer for the profile). > > Regards, > > Andréas > > 2018-07-27 19:49 GMT+02:00 Fernando Miranda >: > >> Hi Andrea, >> >> So, I'm getting the user that way, I'm in d

Re: Change the default route of a view

2018-07-27 Thread Fernando Miranda
Hi Andrea, So, I'm getting the user that way, I'm in doubt is how to mount the routes to an account view, where you have the retrieve, update and delete of the current user. Em sexta-feira, 27 de julho de 2018 12:23:24 UTC-3, Andréas Kühne escreveu: > > Hi Fernando, > >

Re: Change the default route of a view

2018-07-27 Thread Fernando Miranda
uential identifiers for > users/resources, use UUIDs. Any token passed in the headers should be used > for auth only, not contain explicit routing values. > > On Thursday, July 26, 2018 at 4:10:55 PM UTC-4, Fernando Miranda wrote: >> >> Hello, I'm using Django Rest Fram

Change the default route of a view

2018-07-26 Thread Fernando Miranda
Hello, I'm using Django Rest Framework, I was wondering if you have how to change the default url of an endpoint in a view? In case it is a view of account where I wanted the retrieve method to be without / {id} this also for the delete and edit because I will identify the user by the token pas

Dos Modelos en un formulario django

2017-07-27 Thread Nelson Fernando Garcia Gomez
hola Buenas soy algo nuevo en django y me anima aprender cada vez mas,l bueno mi inquietud es la siguiente como puedo enlazar dos modelos a un formulario tengo como modelos usuarios y características y donde el modelo características tiene una relacion models.OneToOneField con usuarios, quisier

Anyone know howto solve this: Error loading either pysqlite2 or sqlite3 module

2017-02-19 Thread Fernando Ramirez Dominguez
Hello, everybody: I am a newbie in Django and I recently installed Python 3.6 and Django 1.110.5, but when try execute the server show me: {code} Traceback (most recent call last): File "/root/myDjangoProject/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 34, in

Re: my mysite/templates/admin/base_site.html is ignored (tutorial unclear?)

2015-03-12 Thread fernando . lescano
Try this: mysite# tree . ├── db.sqlite3 ├── manage.py ├── mysite │ ├── __init__.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── polls ├── admin.py ├── __init__.py ├── migrations │ ├── 0001_initial.py │ └── __init__.py ├── models.py ├── tests.py

Re: django deployment in a virtual machine.

2015-02-25 Thread Fernando Ramos
If there's more than one person using it your site will only grow. The Django web server is meant for debugging, not production. Go the extra step and setup ngnix or another simple http server. You will thank yourself later. El martes, 24 de febrero de 2015, 14:49:16 (UTC-7), dk escribió: > > i

Re: Django 1.5.1, gdal 1.9.2: segmentation fault on DataSource import

2013-05-13 Thread Fernando Rocha
> I find weird pygame reference there, do you also have pygame > installed)? > I've just tested on a env without pygame and: In [4]: In [6]: lgdal['GDALVersionInfo'](b'RELEASE_NAME') zsh: segmentation fault (core dumped) python manage.py shell -- You received this message because you are subscr

Re: Django 1.5.1, gdal 1.9.2: segmentation fault on DataSource import

2013-05-13 Thread Fernando Rocha
Same here (also running Arch Linux), by running functions on shell: --- In [1]: from ctypes import CDLL In [3]: lib_path = '/usr/lib/libgdal.so' In [4]: lgdal = CDLL(lib_path) In [5]: lgdal['GDALVersionInfo'] Out[5]: <_FuncPtr object at 0x52447a0> In [6]: lgdal['GDALVersionInfo'](b'RELEASE_NAM

Re: What's your opinion about nested apps?

2013-01-12 Thread Fernando Rocha
On Jan 12, 11:37 am, David Medina wrote: > It's only a email typo, never mind. I wanted to explain the "nested" > concept with code. > > The main question could be: *Has it any side effects?*, Third apps maybe?. I had some issues with commands with an app that uses a similar structure. More ab

Models relationship

2012-08-23 Thread Fernando Andreacci
Hello, I'm a new Django user, and I have the following question: I have one Model called *factory, *with several fields like (name, address, phone, etc). Each factory can be a customer, a supplier or both. Ex: Factory1 is a customer of Factory2, and Factory1 is a supplier of Factory3. How can

Re: Static website generator.

2012-07-19 Thread fernando iocca
m] On Behalf Of fernando iocca Sent: 19 July 2012 18:56 To: django-users@googlegroups.com Subject: Static website generator. Hi all! I'm learning python-django and I really like. Can anyone recommend a "static website generator" for use with python-django? Greetings and thank you very mu

Re: Any free cloud database hosting ?

2012-07-19 Thread fernando iocca
Maybe you could use parse.com. Has available a REST API that seems to be good, I have not tried it yet. El 19/07/12 14:20, doogster escribió: Redhat's cloud hosting service. They offer a free tier, and they're Django-compatible. On Thursday, July 19, 2012 5:54:03 AM UTC-7, surya wrote: "

Static website generator.

2012-07-19 Thread fernando iocca
Hi all! I'm learning python-django and I really like. Can anyone recommend a "static website generator" for use with python-django? Greetings and thank you very much from now. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: Which Linux distro to use on EC2?

2011-11-14 Thread Fernando Rocha
I also agree that you should start with you are familiar with. In my personal experience, after experimenting some. I choose the Basic Amazon AMI, which is Centos compatible. It was what worked best for me. []s On Nov 13, 4:56 pm, ydjango wrote: > I am setting up nginex, apache, python django,

Re: Django as a Standalone Desktop Application

2011-10-21 Thread Fernando Rocha
execute_manager(manage.settings, ['manage.py', 'runserver', '0.0.0.0:8000']) So, the person on the other side has to just install python installer, enter the project directory and double click bootstrap.py. []s Fernando Rocha ps.: Sqlite as backend. -- http://about.m

Clueless Monk

2011-03-22 Thread Fernando Torres Jr.
Hi I was wondering how you start up with Python? Python is a language that you use on what platform? Like C++ can be used on Microsoft Visual Studios. What is the equivalent for Python. Sorry I am a begineer programmer -- You received this message because you are subscribed to the Google Groups

RE: Django editor for Debian

2009-12-16 Thread Fernando Rodriguez
WingIDE is, IMHO, the best ide for python and django > -Original Message- > From: django-users@googlegroups.com > [mailto:django-us...@googlegroups.com] On Behalf Of NMarcu > Sent: Wednesday, December 16, 2009 8:59 AM > To: Django users > Subject: Django editor for Debian > > Hello all,

Re: __getitem__ and lookups in templates

2009-08-31 Thread Fernando Gómez
in the case where you want the dictionary lookup to > be seen as failing. Thank you Karen for pointing me to the right part of the code, and for such a clear explanation. -- Fernando --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: multi-tenant website

2009-08-24 Thread Fernando Correia
Thanks for the quick answer, Dan! That project is exactly what I was looking for. http://github.com/CrowdSense/django-saas-kit/tree/master Cheers! 2009/8/24 Daniel Hilton > > You might have alook at the saas kit which is availble on github, > which does subscription billing, subdomain handling

multi-tenant website

2009-08-23 Thread Fernando
;t an app or plugin that helps with that scenario, I'd appreciate some pointers on how this could be implemented in a Django website. Cheers, Fernando Correia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Discussion board, user profiles and surveys

2008-11-14 Thread Fernando Rodriguez
Hi, I need to build a site that will mostly be a discussion board with surveys. What Django apps would you recommend for this? Thanks in advance, Fernando --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Trouble with regex

2008-08-18 Thread Fernando Rodríguez
El lun, 18-08-2008 a las 13:10 -0500, Malcolm Tredinnick escribió: > It looks like you might be making an assumption that the patterns are > concatenated. This isn't correct. > > The patterns in resume_templates.urls will be applied to the suffixes of > the URLs matching resumes (after the first

Re: Trouble with regex

2008-08-18 Thread Fernando Rodríguez
El lun, 18-08-2008 a las 10:35 -0700, Rajesh Dhawan escribió: > > You need to remove replace /jss/ there with jss/: > > (r'jss/(?P[-\w]+)/$', jss_list), > Ouch! O:-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Trouble with regex

2008-08-18 Thread Fernando Rodríguez
El lun, 18-08-2008 a las 12:49 -0500, Norman Harman escribió: > > I'm fairly certain the space indicates an urls came from an "include". > The spaces are not really part of regex. OK > > In latter case career would be word > > > Your urls should be like this: >(r'^(?P[-\w]+)/$', caree

Trouble with regex

2008-08-18 Thread Fernando Rodríguez
between "^resumes/" and the rest. I have no idead where that space is coming from or if it's the cause of the error mentioned above. Any help would be greatly appreciated. Fernando --~--~-~--~~~---~--~~ You received this message because you are s

Re: Error: cannot import name ugettext_lazy

2008-07-21 Thread Fernando Rodríguez
El lun, 21-07-2008 a las 12:10 -0500, James Bennett escribió: > You will not be able to follow along with the book using the Django > 0.96 release (as stated in the opening chapters). You will need to > instal a dev version from SVN. > Thanks, I just got version 0.97 from svn. --~--~

ImportError: cannot import name parse_lookup

2008-07-21 Thread Fernando Rodríguez
self.load_app(app_name, True) File "/usr/lib/python2.5/site-packages/django/db/models/loading.py", line 72, in load_app mod = __import__(app_name, {}, {}, ['models']) File "/home/fernando/django/elis/models.py", line 6, in from tagging.fields import TagField

Error: cannot import name ugettext_lazy

2008-07-21 Thread Fernando Rodríguez
ht mean? Thanks in advance, Fernando PS: These are my installed apps: INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', '

Re: escape filter

2008-07-15 Thread Fernando Rodríguez
El mar, 15-07-2008 a las 10:33 -0700, Malcolm Tredinnick escribió: > > I'm definitely not saying you definitely don't need this, but make sure > that you're doing it for the right reasons. Sending UTF-8 in all of it's > non-entity-encoded glory is very normal practice. OK, thanks. :-) --~--

Re: escape filter

2008-07-15 Thread Fernando Rodríguez
El mar, 15-07-2008 a las 12:30 -0500, Arien escribió: > Why do you need to use HTML entities for accented characters? What is > the problem you're trying to solve? > Aren't you suposed to display accented chars and stuff like ¡ or ¿ as html entities? --~--~-~--~~~---

Re: escape filter

2008-07-15 Thread Fernando Rodríguez
e in "The definitive guide to django" but saw none. I can't be the first one in need of this... > --Ned. > http://nedbatchelder.com > > Fernando Rodríguez wrote: > > Hi, > > > > I'm using this simple template with flatpages: > > > >

escape filter

2008-07-15 Thread Fernando Rodríguez
Hi, I'm using this simple template with flatpages: {{ flatpage.title|escape }} {{flatpage.title|escape}} {{ flatpage.content|escape }} I was expecting to see all accented chars in title and contents to be displayed properly escaped, however,

Re: list_display a Many to Many field

2008-07-10 Thread Fernando Rodríguez
El mié, 09-07-2008 a las 06:40 -0700, urukay escribió: > > this should work: > > def get_authors(self): > return self.authors.all() Thanks Radovan. Shouldn't it be self.authors.objects.all()? --~--~-~--~~~---~--~~ You received this message because you are

Re: Too many values to unpack error

2008-07-10 Thread Fernando Rodríguez
El mié, 09-07-2008 a las 09:35 -0500, Arien escribió: > > TOPIC_CHOICES = ( ('general', 'General enquiry'), > > ('bug', 'Bug report'), > > ('suggestion' 'Suggestion'), > > ) > > You're missing a comma in the last-but-one line. (It evaluates to

Too many values to unpack error

2008-07-09 Thread Fernando Rodríguez
Hi, I'm getting this error while calling .as_table() on a form. This is how I define the form and the view function: from django import newforms as forms TOPIC_CHOICES = ( ('general', 'General enquiry'), ('bug', 'Bug report'), ('suggestion' 'Suggestion'),

list_display a Many to Many field

2008-07-09 Thread Fernando Rodríguez
Hi, I'm trying to display a many to many field in the admin interface. This is my model: class Book(models.Model): title = models.CharField(maxlength = 100, db_index = True) authors = models.ManyToManyField(Author) Publisher = models.ForeignKey(Publisher) publicationDate = model

Re: Still unable to log into the admin interface

2008-07-07 Thread Fernando Rodríguez
El lun, 07-07-2008 a las 17:55 +0100, Chris Hoeppner escribió: > Yeah, the book makes you comment those, but makes you uncomment them > again in the next (or the next) chapter =) I guess that's what happens when you're in a hurry and start skipping what you shouldn't. Serves me well. ;-) --~

Field class: Difference between blank and null

2008-07-07 Thread Fernando Rodríguez
Hi, I want one on my models to have an optional field. After checking the code in the Field class, there are two promising params to __init__(): blank=False, null=False What's the difference between both and which one should I use? Thanks! :-) --~--~-~--~~~---~--~

Re: Still unable to log into the admin interface

2008-07-07 Thread Fernando Rodríguez
El lun, 07-07-2008 a las 12:30 -0400, Karen Tracey escribió: > > [snip] > > MIDDLEWARE_CLASSES = [] #( >#'django.middleware.common.CommonMiddleware', >#'django.contrib.sessions.middleware.SessionMiddleware', >#'django.contrib

Re: Still unable to log into the admin interface

2008-07-07 Thread Fernando Rodríguez
ere it is: --- # Django settings for mysite project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', '[EMAIL PROTECTED]'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql&#x

Re: Still unable to log into the admin interface

2008-07-07 Thread Fernando Rodríguez
El lun, 07-07-2008 a las 04:24 -0700, urukay escribió: > > did u create user during SYNCDB? yes and i got no errors. > > > Fernando Rodríguez wrote: > > > > > > Hi, > > > > I followed the advice I got here, and added > >

Still unable to log into the admin interface

2008-07-07 Thread Fernando Rodríguez
Hi, I followed the advice I got here, and added django.contrib.auth django.contrib.contenttypes django.contrib.admin to settings.py and included the following pattern to urlsp.py: (r'^admin/', include('django.contrib.admin.urls')), I also included from django.contrib.auth.models import User

Django based CMS

2008-07-05 Thread Fernando Rodríguez
Hi, Is there any open source django based cms you would recommend? Th eonlyone I've seen so far is PyLucid. What else is there? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Trouble activating the admin interface

2008-07-02 Thread Fernando Rodríguez
Hi, I'm learning django with "the definitve guide to django". On chapter 6, I tried to activate the admin interface fro the "books" app, by adding django.contrib.admin to the INSTALLED_APPS and then calling manage.py syncdb. It failed with the following error: --

Using WingIDE's shell instead of manage.py shell

2008-07-02 Thread Fernando Rodríguez
Hi, I'd like to use WingIDE's own python shell with django, instead of the terminal you get with manage.py shell. However, if I try to eval a file form within Wing, I get this error: Traceback (most recent call last): File "/home/fernando/", line 1, in File &quo

Development environment

2008-06-25 Thread Fernando Rodríguez
Hi, I'm currently learning django on Ubuntu, but my background is Windows, so I'm not a VIM kind of guy. What kind of IDE do you guys use or recommend? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: What am I doing that is sooo wrong with newforms??

2008-06-16 Thread Fernando Gutierrez
[EMAIL PROTECTED] wrote: > You can't assign to the form so your code should look like: > > if form.is_valid(): > c = form.save(commit=False) > c.user = request.user > Since the field in the model is "commentUser" it should be: c.commentUser = request.user > c.save() > > call

Re: Not possible activate the admin site

2006-06-05 Thread Fernando Gutierrez
Did you svn update from previous trunk to magic-removal? I experienced this because svn update left a directory urls in django/contrib/admin/urls/, so i think there was some type of conflict with the urls.py that is now directly in the django/contrib/admin/ GinTon escribió: > Solved after of

Re: auto_now_add bug with MySQL

2006-05-05 Thread Fernando Gutierrez Honorio
s produces the error, object.b_set.create().save() but: object.b_set.create() does the trick, i think that the first one shouldn't be used, i left it like that while changing code to use the Magic-Removal version of django. I hope this also helps you. -- Fernando Gu