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
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_
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
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()
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
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
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
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 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
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
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
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,
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
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
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ł:
>>
&
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
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
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
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
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
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,
>
>
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
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
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
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
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
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
> 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
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
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
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
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
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:
"
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
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,
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
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
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,
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
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
;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
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
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
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
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
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
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.
--~--~
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
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',
'
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. :-)
--~--
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?
--~--~-~--~~~---
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:
> >
> >
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,
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
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
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'),
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
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. ;-)
--~
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! :-)
--~--~-~--~~~---~--~
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
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
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
> >
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
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
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:
--
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
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
[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
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
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
70 matches
Mail list logo