Re: Student Club Management Web App: Seeking Collaboration and Advice from Experts

2024-03-06 Thread Daud L Namayala
Interested. Contacts Phone: +255692610102 Github: daudln On Sat, Mar 2, 2024, 18:59 SOLTAN NOURELDIEN wrote: > > Hello, I am currently working on my Django Project for a specific course > at my university. I have already finished reading "Django for Beginners" by > William S. Vincent. Now, I am

Re: Redesign of agricultural project with python django and next.js technologies.

2024-03-03 Thread Daud L Namayala
I am interested in this project. Here is my contact information Github: daudln Phone number: +255692610102 On Sun, Feb 18, 2024, 19:48 Jorge Bueno wrote: > The project: > > I am working on an exciting project that I think you may be interested in. > It is an online marketplace, similar to the US

Re: Deploy Django Project in AAPanel

2022-09-01 Thread Javier L. Camacaro
ile "/www/server/panel/pyenv/lib/python3.7/codecs.py", lin.and more* when i try to create a project with python manager 2.0. I can't understand *.* *Thanks again!* El jue, 1 sept 2022 a las 1:55, 'Kasper Laudrup' via Django users (< django-users@goog

Deploy Django Project in AAPanel

2022-08-31 Thread Javier L. Camacaro
Does someone how to deploy a Django Project in AAPanel? I tried Python Maganer 2.0 but impossible for me! I get this error: Sorry, something went wrong: Traceback (most recent call last): File "class/flask_sockets.py", line 30, in *call* handler, values = adapter.match() File "/www/server/

Re: How to use same Models for all apps?

2022-08-29 Thread Javier L. Camacaro
gt; from appName.models import tableName >> else if you're in the same app >> from .models import tableName >> >> Thanks and Regards >> Lakshyaraj Dash >> >> On Sun, Aug 28, 2022, 04:48 Javier L. Camacaro >> wrote: >> >>> Do i nee

How to use same Models for all apps?

2022-08-27 Thread Javier L. Camacaro
Do i need to repeat the models for each app?, Can I use same model for all the apps in my project? I'm a new a DJango programmer, sorry for that Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Problem with adding image files to my object.

2021-03-04 Thread N!KH!L
Hello everyone! I am trying to convert multiple audio files to image files. After data processing when i try to add o/p(image) using below code, *I am getting an error "'list' object has no attribute '_committed'" in my browser* Here is my *views.py* def home(request): if request.method == 'PO

Re: Django has Future?

2020-12-13 Thread Stephen L
What? How can you look in your local area and determine the future of a framework? Here's how to tell a future of a framework: - Stars on GitHub - Tickets / issues being taken care of - Job search boards (globally) If you search python + web development you'll get requirements for django and flas

REUTILISER UN CITE DJANGO

2020-07-05 Thread C L A S S E 1
*BONJOUR A TOUTES A TOUS* *si je décharge un site(une application django) est ce que je peut l utiliser sur mon environnement de développement qui lui contient déjà porte un site qui existe déjà. ou je dois créer un environnement appart. si possible comment merci* -- You received

how to use a cite in my envir django

2020-07-05 Thread C L A S S E 1
if i download a cite how to use this cite in my envir django with my cite django... sould I do an auther envir . if possible how ? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

Re: "detail": "CSRF Failed: Referer checking failed - no Referer."

2020-04-30 Thread shreehari Vaasistha L
Also csrf exempt is not making any difference On Thursday, April 30, 2020 at 6:48:36 PM UTC+5:30, shreehari Vaasistha L wrote: > > hello > i have deployed django app on aws . > with https im getting error "detail": "CSRF Failed: Referer checking > failed

"detail": "CSRF Failed: Referer checking failed - no Referer."

2020-04-30 Thread shreehari Vaasistha L
hello i have deployed django app on aws . with https im getting error "detail": "CSRF Failed: Referer checking failed - no Referer." . But with http everything works fine. Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Notifications in DRF

2020-04-21 Thread shreehari Vaasistha L
if anyone has implemented FCM in django rest framework using https://github.com/xtrinch/fcm-django or anyother packages, please share it with me. need to send notifications to devices. Thanks in Advance ! -- You received this message because you are subscribed to the Google Groups "Django use

Re: Models as choices

2020-04-16 Thread shreehari Vaasistha L
n Thursday, April 16, 2020 at 12:52:07 PM UTC+8, shreehari Vaasistha L > wrote: >> >> how can i use model x values as choices for model y ? >> >> for eg: >> class countries(models.Model): >> country = models.CharField(max_length=200) >> >&

Re: Models as choices

2020-04-16 Thread shreehari Vaasistha L
Thanks for helping me out . On Thursday, April 16, 2020 at 2:34:13 PM UTC+5:30, Kasper Laudrup wrote: > > Hi Shreehari > > On 16/04/2020 10.17, shreehari Vaasistha L wrote: > > Object of type ValueError is not JSON serializable > > > > > > getting thi

Re: Models as choices

2020-04-16 Thread shreehari Vaasistha L
ds in serializers.py On Thursday, April 16, 2020 at 12:57:16 PM UTC+5:30, Antje Kazimiers wrote: > > with a Foreign Key field, one-to-many relationship: > > https://docs.djangoproject.com/en/3.0/topics/db/examples/many_to_one/ > > Antje > On 4/16/20 6:52 AM, shreehari Vaasis

Re: Models as choices

2020-04-16 Thread shreehari Vaasistha L
e/ > > Antje > On 4/16/20 6:52 AM, shreehari Vaasistha L wrote: > > how can i use model x values as choices for model y ? > > for eg: > class countries(models.Model): > country = models.CharField(max_length=200) > > def __str__(self): > return self.country

Re: user visit count

2020-04-15 Thread shreehari Vaasistha L
ound then filter by user.id , if > found increase number in number_of_visits column by one , if filter not > returning thing then create a new row with object.id and user.id and put > number_of_visits column = 1 > > On Wed, Apr 15, 2020 at 2:29 PM shreehari Vaasistha L > wro

Models as choices

2020-04-15 Thread shreehari Vaasistha L
how can i use model x values as choices for model y ? for eg: class countries(models.Model): country = models.CharField(max_length=200) def __str__(self): return self.country class User(AbstractUser): """User model.""" username = None full_name = models.CharField(_("Full Name"), max_leng

Re: user visit count

2020-04-15 Thread shreehari Vaasistha L
sits column = 1 > > On Wed, Apr 15, 2020 at 2:29 PM shreehari Vaasistha L > wrote: > >> Thank you! >> But can there be any simple implementation as i just want to count number >> of times a user has viewed a post >> >> On Wednesday, April 15, 2020 at 5:4

Re: user visit count

2020-04-15 Thread shreehari Vaasistha L
yet compatible with Django 3.x. There's a patch that needs to be applied > and a release forthcoming that should take care of it. > > -Tim > > On Wed, Apr 15, 2020, at 4:38 AM, Omkar Parab wrote: > > Django hit count package will help you.. > > On Wed, Apr 15, 2020, 1:

Re: user visit count

2020-04-15 Thread shreehari Vaasistha L
not > yet compatible with Django 3.x. There's a patch that needs to be applied > and a release forthcoming that should take care of it. > > -Tim > > On Wed, Apr 15, 2020, at 4:38 AM, Omkar Parab wrote: > > Django hit count package will help you.. > > On W

user visit count

2020-04-15 Thread shreehari Vaasistha L
how can i get the number of views of an endpoint by a single user. -- 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...@googlegroups.com. To

Re: Help in designing excel like sheet in Django/python

2020-04-10 Thread Stephen L
Hello, Django is a web framework that uses python in the backend. You will need JS to build the spreadsheets in the browser. You can use a library like handsontable. On Fri, Apr 10, 2020, 8:32 PM s.patel wrote: > Hi All: > I need advice on how to design spreadsheet like screen using > pytho

Re: Python Django Training

2020-02-28 Thread Hal L
add me 在 2020年2月1日星期六 UTC+8下午9:42:52,Srikanth K写道: > > Hi, > > I am from Hyderabad. I am Python Developer by Profession. I am eager take > up any Python , Django Training (online Preferrable or Weekends). Members > who require can contact me or share me there idea. > > Regards, > Srikanth.K >

Re: I want to know about how to implement elastic search in the python django

2019-10-02 Thread Sithembewena L. Dube
https://www.youtube.com/watch?v=cXYVE28igkE Kind regards, Sithembewena *Sent with Shift * On Wed, Oct 2, 2019 at 5:08 PM sachinbg sachin

Python and Django dev available

2019-08-01 Thread Sithembewena L. Dube
Hi everyone, I'm a developer with just over 10 years' experience under my belt. I've worked with many languages and frameworks, including the popular Django web framework. I'm currently in the market for remote opportunities. Please reply if looking for a resource. Serious enquiries only please.

Re: trying to use a variable inside a static content tag

2019-07-27 Thread Sithembewena L. Dube
Interesting. Kind regards, Lloyd *Sent with Shift * On Sat, Jul 27, 2019 at 11:25 PM Lyman Hurd wrote: > A helpful user in the Python #

Re: use of migrate command and how to see the tables

2019-07-20 Thread Luis O Sulbaran L
Ejemplo, Registra o actualizar cambios realizados a nuestros modelos: python manage.py makemigrations nombre_aplicación 04146493449--0261-7699778 *https://t.me/luisulbaranleon * El vie., 19 de jul. de 2019 a la(s) 04:32, Jani Tiainen (rede...@gmail.com) escrib

Re: Sending Email from form

2019-06-30 Thread Sithembewena L. Dube
+ message + \ '"\n\nWe will respond as soon as possible.' +\ Kind regards, Lloyd *Sent with Shift <https://tryshift.com/?utm_source=SentWithShift&utm_campaign=Sent%20with%20Shift%20Signature&utm_medium=Email%20Signature&utm_content=General%20Email%20Group>* On Sat

Re: Sending Email from form

2019-06-29 Thread Sithembewena L. Dube
check it out and update shortly. > > Sent from my iPhone > > On 29 Jun 2019, at 2:27 AM, Sithembewena L. Dube > wrote: > > I just finished a project where I did the same thing you require. > > I used the Mailgun API. > > The relevant documentation can be found here: > >

Re: linking three models??

2019-06-29 Thread Sithembewena L. Dube
I am not sure I understand what you wish to do. What output would you need? An unrelated tip: in Python the convention is to use lowercase names for variables and functions (words separated by underscores). It makes the code more readable to the vast majority of Python developers, or at least tho

Re: Sending Email from form

2019-06-28 Thread Sithembewena L. Dube
I just finished a project where I did the same thing you require. I used the Mailgun API. The relevant documentation can be found here: https://documentation.mailgun.com/en/latest/user_manual.html#sending-via-api Kind regards, Lloyd *Sent with Shift

Re: Heroku and DJango_Filters

2019-06-27 Thread Sithembewena L. Dube
.com/epiccharterschools> <https://twitter.com/epiccharter> > <https://www.instagram.com/epiccharterschools/> > <https://www.youtube.com/user/EpicCharterSchools> > > > > > On Wed, Jun 26, 2019 at 6:09 PM Sithembewena L. Dube > wrote:

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
thon manage.py collectstatic > --noinput'. > remote:See traceback above for details. > remote: > remote:You may need to update application code to resolve this > error. > remote:Or, you can disable collectstatic for this application: > remote: > rem

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
Charlotte, I am now typing from my phone (away from my desk) but if you still need help after trying out my last recommendation, I would be happy to look at it for you. Kind regards, Lloyd On Wed, Jun 26, 2019, 17:59 Charlotte Wood < charlotte.w...@epiccharterschools.org> wrote: > I need help.

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
.. >>>> >>>> >>>> >>>> >>>> Charlotte Wood, MEd >>>> >>>> Educator >>>> >>>> (405) 578-5701 >>>> >>>> Zoom Meeting ID#: 4055785701 >>>> >>>

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
t;>> >>> Charlotte Wood, MEd >>> >>> Educator >>> >>> (405) 578-5701 >>> >>> Zoom Meeting ID#: 4055785701 >>> >>> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912 >>> >>> Classroom Googl

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
ites.google.com/epiccharterschools.org/charlottewoodclassroom/home > > Epic Technical Support: (405) 652-0935 > > > > Jordan McKesson Principal > > 405-749-4550 ext. 309 > > jordan.mckes...@epiccharterschools.org > > <http://facebook.com/epiccharterschools&g

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
Oops - I meant 'such as'. Kind regards, Lloyd *Sent with Shift <https://tryshift.com/?utm_source=SentWithShift&utm_campaign=Sent%20with%20Shift%20Signature&utm_medium=Email%20Signature&utm_content=General%20Email%20Group>* On Wed, Jun 26, 2019 at 7:06 PM Sithem

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
cebook.com/epiccharterschools> <https://twitter.com/epiccharter> > <https://www.instagram.com/epiccharterschools/> > <https://www.youtube.com/user/EpicCharterSchools> > > > > > On Wed, Jun 26, 2019 at 11:13 AM Sithembewena L. Dube > wrote: > >> Hi Cha

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
Hi Charlotte, What sort of error do you see? Also, have your checked your logs on Heroku? Lastly, if you have a sandbox on Heroku, you could run the site there in debug mode to get more specific error information. Kind regards, Lloyd *Sent with Shift

Freelance Django developer

2019-06-20 Thread Sithembewena L. Dube
I have capacity to take on some freelance Django work. Message me for help with your Django web apps and APIs. I accept remote work only. Kind regards, Lloyd *Sent with Shift

Re: DateInput not accepting format argument

2019-06-10 Thread Sithembewena L. Dube
Thanks @Joe. I had been trying to avoid using a third party app if I could help it. I ended up using the default Django DateTime widget as-is. Will try out your recommendation if the need arises. Kind regards, Lloyd *Sent with Shift

Re: Form with CheckBoxSelectMultiple not validating

2019-06-10 Thread Sithembewena L. Dube
Thanks for responding @Joe. I had figured out what the issue was. I ended up with: ``` tour_options = forms.MultipleChoiceField( label='Select tour activities', choices=settings.TOUR_OPTIONS, widget=forms.CheckboxSelectMultiple() ) ``` Kind regards, Lloyd *Sent with Shift

Form with CheckBoxSelectMultiple not validating

2019-06-07 Thread Sithembewena L. Dube
I have a form with a CheckBoxSelectMultiple widget. When I select choices and submit the form, `is_valid()` returns False. What could be the cause? Kind regards, Lloyd *Sent with Shift

DateInput not accepting format argument

2019-06-07 Thread Sithembewena L. Dube
Hi, I have a form with a start_date field of type DateField (widget is DateInput). When I specify a format argument, the input does not render as specified. The format is always -MM-DD. My code is as follows: ``` start_date = forms.DateField( label='Start date', widget=forms.widgets.DateInpu

Re: deploy to Heroku " collectstatic --noinput "

2019-05-27 Thread Stephen L
s for arena project. >>>> >>>> Generated by 'django-admin startproject' using Django 2.2.1. >>>> >>>> For more information on this file, see >>>> https://docs.djangoproject.com/en/2.2/topics/settings/ >>>> >>>>

Re: Django How to write Customized Query ( Display Information Departmentwise)

2019-04-20 Thread Sithembewena L. Dube
Your model fields are not cased correctly. https://stackoverflow.com/questions/8908760/should-i-use-camel-case-or-underscores-in-python Kind regards, Sithu *Sent with Shift

Re: Advanced permissions and role creation

2019-04-20 Thread Sithembewena L. Dube
For roles and permissions management, I would stick with Django's Auth application (django.contrib.auth). It sounds like you ought to read up on how to design and build a multi-tenancy SaaS project in Django. I cannot recommend any one resource, so you'll have to do some searching and see what fit

Re: Unhashable TypeError when deleted from model, Django 2.2

2019-04-17 Thread Sithembewena L. Dube
help in that regard. > > But I think this error has something to do with Django’s delete method. > The filtering aspect works just fine. > > > > *From:* django-users@googlegroups.com [mailto: > django-users@googlegroups.com] *On Behalf Of *Sithembewena L. Dube > *Sent:* Tuesday,

Re: Unhashable TypeError when deleted from model, Django 2.2

2019-04-16 Thread Sithembewena L. Dube
Why not use a boolean field on the model to denote expires? Then if that field is True, delete the object? I think that would be cheaper and cleaner, especially with lookups. Kind regards, Sithu *Sent with Shift

Re: How to run ORM commands from DOM Javascript?

2019-04-15 Thread Sithembewena L. Dube
You cannot run Django's Python code in JavaScript in a browser. The advice you have been given applies. Kind regards, Sithu *Sent with Shift

Re: Changing Admin Interface in Django

2019-04-11 Thread Stephen L
You can look at JET. It's not like that, but it does look much better than Django's out of box admin interface. https://github.com/geex-arts/django-jet On Thu, Apr 11, 2019 at 11:58 AM Aayush Bhattarai wrote: > *Hey Buddy, Can I change my Django Interface. I don't like such interface > and I w

Re: Changing Admin Interface in Django

2019-04-11 Thread Sithembewena L. Dube
If you want to alter how the admin site looks, then that link is quite relevant. Kind regards, Sithu *Sent with Shift * On Thu, Apr 11, 2

Re: Changing Admin Interface in Django

2019-04-11 Thread Sithembewena L. Dube
What do you want to do? Saying you want to "change" the admin could mean anything. Kind regards, Sithu *Sent with Shift * On Thu, Apr 11,

Re: Changing Admin Interface in Django

2019-04-11 Thread Sithembewena L. Dube
I highly recommend the (excellent) documentation. If you have done the official tutorial, then check out the link below and take it from there. https://docs.djangoproject.com/en/2.2/intro/tutorial07/ Kind regards, Sithu *Sent with Shift

Re: Generic display views / DetailView

2019-04-09 Thread Sithembewena L. Dube
The slug must be descriptive of the record. It is often derived from a value such as a blog title. A good slug is useful for SEO purposes as it can contain descriptive keywords. I just sent more reading on slugs from the official Django docs. Kind regards, Sithu *Sent with Shift

Re: Generic display views / DetailView

2019-04-09 Thread Sithembewena L. Dube
The slug would be the part of the url that points to a specific blog entry or article. https://docs.djangoproject.com/en/2.2/glossary/#term-slug https://docs.djangoproject.com/en/2.2/ref/models/fields/#django.db.models.SlugField Kind regards, Sithu *Sent with Shift

Re: How is the best way to separate costumers on my django site?

2019-04-04 Thread Sithembewena L. Dube
Hi https://www.codementor.io/pauloscardine/15-minute-guide-to-secure-saas-multitenancy-with-django-and-let-s-encrypt-ijtlarca8 https://blog.usejournal.com/building-a-saas-application-with-django-web-framework-part-1-2-the-principe-2f0730a6693f Kind regards, Sithembewena *Sent with Shift

Re: Django module view has no attribute?

2019-04-02 Thread Sithembewena L. Dube
@drone4four I meant the main URLconf, not "maul". Kind regards, Sithembewena *Sent with Shift * On Wed, Apr 3, 2019 at 3:36 AM drone4four

Re: Django module view has no attribute?

2019-04-02 Thread Sithembewena L. Dube
There was also a typo in my response, as I wasn't using the aliased imports in the calls to `path`. Also, the single letters were just an illustration (clear variable naming is key). Also, I would not import any app's views in the maul URLconf. This kind of defeats Django's "plug and play" applica

Re: Django module view has no attribute?

2019-04-01 Thread Sithembewena L. Dube
I don't know the contents of the course you are taking, but it looks like the last import of views, which is "from counters import views" is overriding all the others and in it you have not defined a "posts" view. 1. You could solve this by aliasing your imports, e.g.: ``` from django.contrib impo

Re: Installation Question

2019-03-28 Thread Sithembewena L. Dube
Can you paste the command you are running? Kind regards, Sithembewena *Sent with Shift * On Thu, Mar 28, 2019 at 6:31 PM Michael Achterbe

Re: on_delete not getting called when ForeignKey is a property

2019-03-14 Thread Sithembewena L. Dube
There is nothing wrong with having logic in models. This is the principle of object orientation - encapsulating methods and properties in a class definition to group related behaviours and attributes of a specified type of entity. See the section titled "Make ‘em Fat" here: https://django-best-pr

Re: Missing manage.py & settings.py

2019-03-08 Thread Sithembewena L. Dube
Understand the difference between a project and an app. See "Projects vs. apps" at the following link (correct for current version). https://docs.djangoproject.com/en/2.1/intro/tutorial01/ Kind regards, Sithembewena *Sent with Shift

Re: django vue javascript integration

2019-03-01 Thread Sithembewena L. Dube
The issue here appears to be that OP's browser cannot load the .js file as specified in the resource path. I would agree with Wira about checking what the path is and ensuring that the .js file is in the correct location. Kind regards, Sithembewena *Sent with Shift

Re: Using a custom user model extended from AbstractBaseUser, the user object is lose between requests

2018-09-25 Thread L
As an additional detail - This product unfortunately has to use an existing database, which means no django migrations, which means all ORM has to be done manually. This is why the user model isn't capable of saving back to the DB, and why I'm going through this whole convoluted setup. -- You

Using a custom user model extended from AbstractBaseUser, the user object is lose between requests

2018-09-25 Thread L
I'm using a custom user model that extends `AbstractBaseUser`. This is the user model: class cUser(AbstractBaseUser): def save(self, *args, **kwargs): pass role_id = models.IntegerField() user_id = models.IntegerField() email = models.CharField(max_length=40) password

django-filter over models

2018-09-12 Thread René L . Hechavarría
Hello, I have a model, Jobs and Persons, Jobs are listed in ListView, i need to add a filter (django-filter), if i filter over field in Jobs all work good, but i need to filter also for Persons. this is and example @property def get_persons(self): return self.persons_all.all() That allow to

Check file input extension

2018-08-28 Thread René L . Hechavarría
Hi everyone, i need check file input format in forms.py, someone have any example. Thanks in advance. My model form: class TestModelForm(forms.ModelForm): class Meta: model = TestModel exclude = ('id') widgets = { 'doc_1': forms.FileInput(attrs={'class': '

HTML video seek problem in django

2018-01-10 Thread Manjunatha L Naik
Hii, When load video from Django app, the video seeking(forward and backward) is not possible with chrome browser. It works fine with IE and Mozilla Firefox.. Please help me out. Thanks, -- You received this message because you are subscribed to the Google Groups "Django users" group

parent: [ 'Invalid pk "0" - object does not exist.' ] and null or blank value not store in mysql

2016-05-31 Thread L K Singh
class AccountType(ModelBase): parent = models.ForeignKey('self',on_delete = models.SET_NULL, null=True, blank=True, default=None ) class AccountTypeSerializer(serializers.ModelSerializer): parent = serializers.PrimaryKeyRelatedField(queryset=AccountType.objects.all(), required=False,

Re: Electronic Notebook (ELN)

2015-09-03 Thread Peter L. Berghold
On Thu, Sep 03, 2015 at 07:22:04AM -0700, Derek wrote: > On Thursday, 3 September 2015 15:57:49 UTC+2, Cowdawg wrote: > > Off-topic ... but I assume you mean "an official Linux client"? What > third-party party clients have you tried and why have they failed? > I tried "nevernote" (renamed...

Re: Electronic Notebook (ELN)

2015-09-03 Thread Peter L. Berghold
On Wed, Sep 02, 2015 at 07:39:14PM -0700, Aref wrote: > I am looking for an electronic notebook for general engineering notes. It > seems that this would be a good candidate application for Django. Does You might want to take a look at Evernote. Been using that application for a while and it

conflicts with six.moves

2015-06-22 Thread Christopher L. Trudeau
I've been using django to interface with a couple of data source libraries, both of which use six. There appears to be some sort of conflict problem between six and django.utils.six which causes ImportErrors. For example, using the Reddit library "praw": > from six.moves.urllib.parse import parse

Re: possible bug - CharField accepts string as max_length

2015-05-19 Thread Santiago L
El lunes, 18 de mayo de 2015, 12:33:21 (UTC+2), James Schneider escribió: > > I'd post a bug report. Based on the behavior you've outlined (haven't > looked at the Django source), there may have been some oversight on the > duck typing that python performs. It sounds like the migration package is

Re: possible bug - CharField accepts string as max_length

2015-05-18 Thread Santiago L
really 16 char max_length in DB if > you specifiy a string '16'? > > On 05/15/2015 10:53 AM, Santiago L wrote: > > Hi, > > I think that I have found a bug on the system check: it accepts a string > as value for CharField.max_length argument. > > It

possible bug - CharField accepts string as max_length

2015-05-15 Thread Santiago L
Hi, I think that I have found a bug on the system check: it accepts a string as value for CharField.max_length argument. It happens only if the string can be converted to int (e.g. max_length='16'). Otherwise shows fields.E121 error (e.g. max_length='foo'). from django.db import models class

Django 1.7 - data migration which needs content types populated

2015-05-11 Thread Santiago L
Hi, I'm migrating an app from Django 1.6 to 1.7 and I need to create a data migration to load some initial data. Some of the migrations requires that Content Types are populated in order to create some objects with Generic Relations. # models.py class TincHost(models.Model): name = models.

form.errors.as_json() returns a str - Django 1.8

2015-04-21 Thread George L.
I'm trying to return errors to an ajax call but as_json() form method generates a string of a dict instead of a dict. JsonResponse accepts only dicts and if I set safe=False, JsonResponse tries to serialize the data as a string, which results in a corrupted data. Is this a bug or expected resu

installing django

2015-04-03 Thread Karol L
I found many topic about this but still don't solve the problem. I installed django and when i try to make a project: -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubsc

Re: 求解答 说是找不到'hello', 我看Python的搜索path 也对啊 附件是程序 我是第一次接触Django

2014-11-11 Thread Ricardo L. Dani
actually, or use 'mysite.viess.hello' on the second argument of your url definition 2014-11-11 13:07 GMT-02:00 Ricardo L. Dani : > missing > > from .views import hello > > on urls.py > > or use 'hello' as string > > 2014-11-11 11:54 GMT-02:00 tk

Re: 求解答 说是找不到'hello', 我看Python的搜索path 也对啊 附件是程序 我是第一次接触Django

2014-11-11 Thread Ricardo L. Dani
it > https://groups.google.com/d/msgid/django-users/8cf2f5d7-2906-4dad-88ab-0d6bd290008c%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/8cf2f5d7-2906-4dad-88ab-0d6bd290008c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options

Re: update() on queryset django 1.7.1 not functional

2014-11-10 Thread Ricardo L. Dani
send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/83c6c0e3-592e-4357-8556-797eff6e261d%40googlegroups.com > <https://groups.goo

Re: Alternative to django-registration (unmaintaned since September 2013)

2014-07-23 Thread Santiago L
El sábado, 19 de julio de 2014 02:17:24 UTC+2, Russell Keith-Magee escribió: > > > On Fri, Jul 18, 2014 at 8:31 PM, Santiago L > wrote: > >> Hi, >> >> Some weeks ago I noticed that django-registration is not longer >> maintained by >> its creator: &g

Alternative to django-registration (unmaintaned since September 2013)

2014-07-18 Thread Santiago L
Hi, Some weeks ago I noticed that django-registration is not longer maintained by its creator: quoting https://bitbucket.org/ubernostrum/django-registration/wiki/Home > django-registration > I stepped down as maintainer of this application in September 2013. Pull > requests, issues and comments

How do I start with this project with django

2014-03-14 Thread Rob L
ent user from uploading malicious stuff to backend... Any suggestions, ideas would be appreciated. Thanks! Thanks Rob L -- 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,

Using X-editable with Django?

2012-12-08 Thread Steven L
I am trying to get X-Editable inline editing of a model in Django. I am simply trying to change attributes of a model instance (in this case, the name of a Dataset object). Whenever I try to make the inline edit, I get an error that says that t

Re: Creating a custom mixin for use with the generic CreateView

2012-10-05 Thread Guruprasad L
Hi, On Friday, October 5, 2012 3:55:26 AM UTC+5:30, Javier Guerra wrote: > > On Thu, Oct 4, 2012 at 4:55 PM, Guruprasad L > > wrote: > > This is the first time I am using mixins in code. I read mixed opinions > > about mixins, a few of them saying that it is bad. I

Dynamically adding values to related foreign key field in the form

2012-10-05 Thread Guruprasad L
Hi all, Is it possible to add a value for a foreign key field from a form that is actually using it. For example, I have seen in the admin app that whenever there is a foreign key field, there is a way to add new items to that field via a popup window and the added value gets added to the list

Re: Creating a custom mixin for use with the generic CreateView

2012-10-04 Thread Guruprasad L
On Friday, October 5, 2012 3:14:22 AM UTC+5:30, Guruprasad L wrote: > > Hi I have created a Mixin that overrides just the get_form method, to be > used with a class that inherits from CreateView. The Mixin inherits from > object. In my view, when I include CreateView and my mixin i

Creating a custom mixin for use with the generic CreateView

2012-10-04 Thread Guruprasad L
Hi I have created a Mixin that overrides just the get_form method, to be used with a class that inherits from CreateView. The Mixin inherits from object. In my view, when I include CreateView and my mixin in that order, the mixin code doesn't get executed. But when I swap the order of inheritin

Re: Is this a bug in django? template_context_processors processed in views without RequestContext context_instance.

2012-06-13 Thread Ricardo L. Dani
Guys, I solved. It's django-debug-toolbar fault. It's does double requests and loads all the context processor :( Thanx 2012/6/13 Ricardo L. Dani > Hello everyone, > > I'm having a issue with template_context_processors requests and views > that do not use the co

Is this a bug in django? template_context_processors processed in views without RequestContext context_instance.

2012-06-13 Thread Ricardo L. Dani
Hello everyone, I'm having a issue with template_context_processors requests and views that do not use the context processors, i.e. in a render_to_response without use of RequestContext. For example, in my TEMPLATE_CONTEXT_PROCESSORS, as default, I have a "django.contrib.auth.context_processors.a

Re: Which IDE should I use for Django?

2011-12-20 Thread Patricio Valarezo L.
1+ -- Enviado desde mi teléfono Android con K-9 Mail. Disculpa mi brevedad Vikas Ruhil escribió: Go for Vim it is great for django you really feel like a superuser , just search Google Vim as python Modern IDE !! On Tue, Dec 20, 2011 at 12:42 PM, huseyin yilmaz wrote: I was going to say

Re: Admin Change List: Display Foreign Keys as Links to Related Change Form

2011-11-13 Thread Sumii L
Perhaps you have a foreignkey, Assumption is that person just like this:( in your models) def go_person(self): return mark_safe(u'%s' % (self.person.get_absoulte_url(), label)) go_person.allow_tags = True go_person.short_description = 'GO_PERSON' --and in your admin.py: list_dispaly = ('go_

Signals and listeners defined in a separate modules unusable in other apps

2011-10-08 Thread Guruprasad L
Hi, I have a django project where I have defined some signals and listeners in a separate module (i.e., in a folder with __init__.py) in the files signals.py and listeners.py. These signals are to be used by multiple applications in the project. So I wrote the code connecting the signal to the l

Django on MediaTemple (dv) 4.0

2011-09-09 Thread Katherine L
Hi everyone, I am having quite a bit of trouble finding current documentation on how to deploy Django to a 4.0 MediaTemple Dedicated server. The wiki page is frighteningly short and I'm not sure where to go from there to make it actually work: http://wiki.mediatemple.net/w/(dv)_4.0:Install_Django.

[geo-django] Best way to capture geo-coordinate of an anonymous user?

2011-08-25 Thread Ricardo L. Dani
Hello everyone, Anyone knows how to capture a geo-coordinate of an anonymous user after his insert your address in an input? Using a google api? Thanks so much -- Ricardo Lapa Dani -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

  1   2   3   >