Re: Django >=3 closes dev server when trying to log in in admin

2020-01-07 Thread Gil Obradors
Oh yes, sorry, i didnt read right...

Mn, no more output to paste?
Do you use an IDE?

i have django 2 and 3 working without this behaveor

Have you introduced changes to admin?


El dc., 8 de gen. 2020, 7:55, Gil Obradors  va
escriure:

> Hi, 302 response status isnt an error
> 
> https://developer.mozilla.org/es/docs/Web/HTTP/Status/302
>
> El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández <
> cristhiang...@gmail.com> va escriure:
>
>> Greetings
>>
>> From version 3 I'm getting this error. When I try log in in admin site
>> django closes dev server with no error, only `"POST
>> /admin/login/?next=/admin/ HTTP/1.1" 302 0``
>>
>> Any suggestion?
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/6b053e2c-d559-44ed-98e0-c7a5f5d3ef9b%40googlegroups.com
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK-JoTS34PpgNruQLqzki%3DSrhEJ%3DHie2bMHj%2BTOTGTCJnNTJQg%40mail.gmail.com.


Re: Django >=3 closes dev server when trying to log in in admin

2020-01-07 Thread Gil Obradors
Hi, 302 response status isnt an error

https://developer.mozilla.org/es/docs/Web/HTTP/Status/302

El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández <
cristhiang...@gmail.com> va escriure:

> Greetings
>
> From version 3 I'm getting this error. When I try log in in admin site
> django closes dev server with no error, only `"POST
> /admin/login/?next=/admin/ HTTP/1.1" 302 0``
>
> Any suggestion?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6b053e2c-d559-44ed-98e0-c7a5f5d3ef9b%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK-JoTSDB%2BRyu%3Dv31Fe-KH7iRgVtKW3DnSmjPvBUGfE32gTYeQ%40mail.gmail.com.


Re: Necessary to learn React/ Angular with backend Django

2020-01-07 Thread Integr@te System
Hi Shetty,

You also consider your project serve local users, so unnecessary implement
high interactive pages from internet clients.

>From online docs, you can learn any technique via small best practices and
apply to your case with basic javascript knowledges or look at python libs,
and then expand features as business change.

Dont forget systems behide when business move beyond, at least data.
Nice.



On Wed, Jan 8, 2020, 01:38 Karan Mittal  wrote:

> Hello friend,
> In my opinion if it is working with current implementation you need not
> add any react or angular.
> Learning perspective they are good but implementation of the same in your
> already working project may raise new errors.
> That's my opinion, feel free to incorporate them once you have learned and
> get the response to do so by your users.
> Regards,
> Karan Mittal
>
> On Tue, 7 Jan, 2020, 11:17 PM Balaji Shetty, 
> wrote:
>
>> Hi
>>
>> Currently i deployed application on pythonanywhere. It is online office
>> file management system with around 100 users under 10 different department
>> in hierarchical manner.
>>
>> User and department may increase in future.
>>
>> Entire application is developed in Django back end.
>>
>> Used bootstrap for custom report generation.
>>
>> question arises in My mind is
>>
>> Is it Necessary to learn and implement in React/ Angular for front end.
>>
>>
>> Because I am comfortable with current implementation.
>>
>>
>> May I know what are gains i may get or what are the disadvantage i may
>> suffer in future.
>>
>> Kindly guide me to avoid future inconvenience.
>>
>>
>> --
>> Mr Shetty Balaji
>> Asst. Prof.
>> IT Department
>> SGGS I
>> Nanded. My. India
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGWmaMxYMJQ5X1sQ%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP5HUWpd7-Y7cV%3DG6UR1h_sPibr9gFmzBTQ0EDcTT7v0cDTWMg%40mail.gmail.com.


Re: Necessary to learn React/ Angular with backend Django

2020-01-07 Thread sagar ninave
On Wed, Jan 8, 2020 at 3:01 AM Ronit Mishra 
wrote:

> Hi Balaji,
>
> Here are a few things for you to take note down based on my experience.
>
> The simplest architecture is the best architecture.
>
> Be it *Apache *or *Nginx*, you're using *Django*'s wsgi services and
> using *Bootstrap *for designing your layout. Probably with some storage
> solution, either a database or remote servers/cloud, if you're storing file
> physically.
>
> Things to observe: *Django *is the core of your stack. Its NOT just
> backend but serves as your frontend as well (although for small scripting
> uses, *HTML5*, *CSS/SCSS*, *JavaScript *is also used alongside *Django*)
> You're using *Bootstrap *just for material designing.
>
>
> Decoupling the services
>
> There is a different framework named "*Django Rest Framework*", which
> works in the backend capacity to create *API*'s for your application.
> In that case you'd preferably use something else for the frontend, like
> *React*, *Angular *or *Vue*. They are nothing but frontend frameworks
> based on JavaScript.
>
> *Please note that, you could still use Bootstrap to design the materials,
> while using React, Angular or Vue as your frontend framework.*
>
>
> The main idea behind destructuring the solution in 2-tier; an api builder
> and a client end, is to decouple the two services. These two services
> operating independently, can communicate with each other and establish
> *Separation* *of C**oncerns (SoC) *architecture. Core logic or business
> function resides in the backend and stored away from the frontend code.The
> frontend, focuses only on the visual aspects and utilizes api endpoints to
> display the data.
>
>
> Using frontend framework is not mandatory.
>
> You're already achieving the desired result from your architecture, which
> uses *Django* with plain old *JavaScript*. However, learning these
> frameworks, will save you a lot of time while development, testing or
> deployment your code.
>
>
> More importantly..
>
> If you're a web developer, I would strongly suggest you to go ahead and
> pick one framework and start your journey. But if you're *NOT *a web
> developer, and this happens to be an automation/service/solution in
> addition to your main application, then you should skip these frameworks.
> Probably work on making the architecture more resilient and fault tolerant.
>
> Also *PythonAnywhere *is not an industrial solution, so you might want to
> consider *Heroku or* *DigitalOcean *or any other enterprise cloud
> solution.
>
> All the best,
> Ronnie
>


*Hey Ronnie *


*i appreciate this detailed answer, balaji will get full about development*

sagar ninave
about.me/sagarninave


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA6pdZ_U2xQKs0P2P-oAKg4VFtTKyq3eKcBeXONE%2BHdRyQQ0nQ%40mail.gmail.com.


Solved [Was: How can I use a custom widget in the Admin for a custom user]

2020-01-07 Thread Mike Dewhirst

On 6/01/2020 7:26 pm, Mike Dewhirst wrote:

Sorry for being boring  ...

I cannot persuade the UserAdmin to use a custom widget instead of the 
one it usually uses. If you can point out where I'm going wrong I will 
be indebted to you.


 I have tried two ways of using a custom widget ...

1. 
https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_overrides


2. 
https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_manytomany


I think the documentation might be wrong on both the above references. 
Or at least I couldn't get either to work so your mileage may vary.


What did work (for me) was the following ...

#common.admin.py (common is my custom-user app)

from django.contrib.auth.admin import UserAdmin
from common.widgets import CommonFilteredSelectMultiple

class CommonUserAdmin(UserAdmin):

    def formfield_for_manytomany(self, db_field, request, **kwargs):
    if db_field.name == "groups":
    formfield = super().formfield_for_manytomany(db_field, 
request, **kwargs)

    formfield.widget = CommonFilteredSelectMultiple(
    db_field.verbose_name,
    db_field.name in self.filter_vertical,
    )
    return formfield
    return super().formfield_for_manytomany(db_field, request, 
**kwargs)

...

#common.widgets.py

from django.contrib.admin import widgets

class CommonFilteredSelectMultiple(widgets.FilteredSelectMultiple):

    def get_context(self, name, value, attrs):
    context = super().get_context(name, value, attrs)
    context['widget']['attrs']['class'] = 'selectfilter'
    if self.is_stacked:
    context['widget']['attrs']['class'] += 'stacked'
    context['widget']['attrs']['data-field-name'] = self.verbose_name
    context['widget']['attrs']['data-is-stacked'] = 
int(self.is_stacked)

    print("\n20 common.widgets")



Cheers

Mike







Neither of these seem to work for me with a minimally adjusted widget 
(see below). This is what I have done ...


#common.widgets.py (my app here is "common")

from django.contrib.admin import widgets


class CommonFilteredSelectMultiple(widgets.FilteredSelectMultiple):
    """ If we can only get this to execute we can adjust the context """

   def get_context(self, name, value, attrs):
        # apart from the print call, this matches FilteredSelectMultiple
print("\n10 admin.widgets")
    context = super().get_context(name, value, attrs)
    context['widget']['attrs']['class'] = 'selectfilter'
    if self.is_stacked:
    context['widget']['attrs']['class'] += 'stacked'
    context['widget']['attrs']['data-field-name'] = self.verbose_name
    context['widget']['attrs']['data-is-stacked'] = 
int(self.is_stacked)

    return context



#common.admin.py

from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from django.db import models
from common.utils import (
    is_sharedsds, user_sharedsds_admin, userprofile_sharedsds_admin,
)
from common.models import UserProfile
from common.widgets import CommonFilteredSelectMultiple


class CommonUserAdmin(UserAdmin):

    def formfield_for_manytomany(self, db_field, request, **kwargs):
    if db_field.name == "groups":
    kwargs["widget"] = CommonFilteredSelectMultiple
    print("\n23 common.admin")
    return super().formfield_for_manytomany(db_field, request, 
**kwargs)


    model = get_user_model()
    extra = 0
    readonly_fields = [
    "last_login",
    "is_staff",
    "is_active",
    "date_joined",
    "groups",
    ]
    get_readonly_fields = user_sharedsds_admin
    fieldsets = [
    (
    "More detail",
    {
    "description": "Server date/times are UTC rather than 
local time",

    "classes": ("",),
    "fields": (
    "password",
    "last_login",
    "username",
    "first_name",
    "last_name",
    "email",
    "is_staff",
    "is_active",
    "groups",
    "date_joined",
    ),
    },
    ),
    ]

    class UserProfileInline(admin.StackedInline):
    def has_add_permission(self, request=None, obj=None):
    return False

    def has_delete_permission(self, request=None, obj=None):
    return False

    model = UserProfile
    extra = 0
    verbose_name_plural = "Profile"
    readonly_fields = ("company", "modified",)
    get_readonly_fields = userprofile_sharedsds_admin
    fieldsets = (
    (
    "Cellphone, Company",
    {
    "classes": ("collapse",),
    "fields": (
    "cellphone",
  

I'm struggling with Django's view directory structure.

2020-01-07 Thread 片岡一平
Hi, 

I'm struggling with Django's view directory structure.
Now, I am creating an app with the following URL structure.


domain / app / page_category1 / action1
domain / app / page_category1 / action2
...
domain / app / page_categoryN / actionM


In this case, how should the Django view directory be constructed?

Thanks for watching.
I'm glad if you get some advice.

Kataoka

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/589b84f1-7258-4b05-b108-d4352ab4ef25%40googlegroups.com.


Django >=3 closes dev server when trying to log in in admin

2020-01-07 Thread Cristhiam Gabriel Fernández
Greetings 

>From version 3 I'm getting this error. When I try log in in admin site 
django closes dev server with no error, only `"POST 
/admin/login/?next=/admin/ HTTP/1.1" 302 0`` 

Any suggestion?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6b053e2c-d559-44ed-98e0-c7a5f5d3ef9b%40googlegroups.com.


Re: Necessary to learn React/ Angular with backend Django

2020-01-07 Thread Ronit Mishra
Hi Balaji,

Here are a few things for you to take note down based on my experience.

The simplest architecture is the best architecture.

Be it *Apache *or *Nginx*, you're using *Django*'s wsgi services and
using *Bootstrap
*for designing your layout. Probably with some storage solution, either a
database or remote servers/cloud, if you're storing file physically.

Things to observe: *Django *is the core of your stack. Its NOT just backend
but serves as your frontend as well (although for small scripting uses,
*HTML5*, *CSS/SCSS*, *JavaScript *is also used alongside *Django*) You're
using *Bootstrap *just for material designing.


Decoupling the services

There is a different framework named "*Django Rest Framework*", which works
in the backend capacity to create *API*'s for your application.
In that case you'd preferably use something else for the frontend, like
*React*, *Angular *or *Vue*. They are nothing but frontend frameworks based
on JavaScript.

*Please note that, you could still use Bootstrap to design the materials,
while using React, Angular or Vue as your frontend framework.*


The main idea behind destructuring the solution in 2-tier; an api builder
and a client end, is to decouple the two services. These two services
operating independently, can communicate with each other and establish
*Separation* *of C**oncerns (SoC) *architecture. Core logic or business
function resides in the backend and stored away from the frontend code.The
frontend, focuses only on the visual aspects and utilizes api endpoints to
display the data.


Using frontend framework is not mandatory.

You're already achieving the desired result from your architecture, which
uses *Django* with plain old *JavaScript*. However, learning these
frameworks, will save you a lot of time while development, testing or
deployment your code.


More importantly..

If you're a web developer, I would strongly suggest you to go ahead and
pick one framework and start your journey. But if you're *NOT *a web
developer, and this happens to be an automation/service/solution in
addition to your main application, then you should skip these frameworks.
Probably work on making the architecture more resilient and fault tolerant.

Also *PythonAnywhere *is not an industrial solution, so you might want to
consider *Heroku or* *DigitalOcean *or any other enterprise cloud solution.

All the best,
Ronnie




On Wed, Jan 8, 2020 at 12:08 AM Karan Mittal 
wrote:

> Hello friend,
> In my opinion if it is working with current implementation you need not
> add any react or angular.
> Learning perspective they are good but implementation of the same in your
> already working project may raise new errors.
> That's my opinion, feel free to incorporate them once you have learned and
> get the response to do so by your users.
> Regards,
> Karan Mittal
>
> On Tue, 7 Jan, 2020, 11:17 PM Balaji Shetty, 
> wrote:
>
>> Hi
>>
>> Currently i deployed application on pythonanywhere. It is online office
>> file management system with around 100 users under 10 different department
>> in hierarchical manner.
>>
>> User and department may increase in future.
>>
>> Entire application is developed in Django back end.
>>
>> Used bootstrap for custom report generation.
>>
>> question arises in My mind is
>>
>> Is it Necessary to learn and implement in React/ Angular for front end.
>>
>>
>> Because I am comfortable with current implementation.
>>
>>
>> May I know what are gains i may get or what are the disadvantage i may
>> suffer in future.
>>
>> Kindly guide me to avoid future inconvenience.
>>
>>
>> --
>> Mr Shetty Balaji
>> Asst. Prof.
>> IT Department
>> SGGS I
>> Nanded. My. India
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGWmaMxYMJQ5X1sQ%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%40mail.gmail.com
> 
> .
>

-- 
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 

Re: Necessary to learn React/ Angular with backend Django

2020-01-07 Thread S D
Hi Balaji,

You can convert your web app into a PWA to gain maximum benefit. Just look
it up.

Data shows that PWAs are the way to go.



Kind regards,
- SD

On Tue, Jan 7, 2020, 19:47 Balaji Shetty  wrote:

> Hi
>
> Currently i deployed application on pythonanywhere. It is online office
> file management system with around 100 users under 10 different department
> in hierarchical manner.
>
> User and department may increase in future.
>
> Entire application is developed in Django back end.
>
> Used bootstrap for custom report generation.
>
> question arises in My mind is
>
> Is it Necessary to learn and implement in React/ Angular for front end.
>
>
> Because I am comfortable with current implementation.
>
>
> May I know what are gains i may get or what are the disadvantage i may
> suffer in future.
>
> Kindly guide me to avoid future inconvenience.
>
>
> --
> Mr Shetty Balaji
> Asst. Prof.
> IT Department
> SGGS I
> Nanded. My. India
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGWmaMxYMJQ5X1sQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDPbKE3aO8Fe8u1_%2Bg10hzcyxC%2BH8ehxoFpW7mXj235Aw%40mail.gmail.com.


Re: Necessary to learn React/ Angular with backend Django

2020-01-07 Thread Gil Obradors
My opinion,

If you want a great powerful user interface ( and experience) of the front
end, yes, interesting to spend hours.
If the users won't appreciate it, no.


Other voice...


Good luck!


Missatge de Karan Mittal  del dia dt., 7 de
gen. 2020 a les 19:38:

> Hello friend,
> In my opinion if it is working with current implementation you need not
> add any react or angular.
> Learning perspective they are good but implementation of the same in your
> already working project may raise new errors.
> That's my opinion, feel free to incorporate them once you have learned and
> get the response to do so by your users.
> Regards,
> Karan Mittal
>
> On Tue, 7 Jan, 2020, 11:17 PM Balaji Shetty, 
> wrote:
>
>> Hi
>>
>> Currently i deployed application on pythonanywhere. It is online office
>> file management system with around 100 users under 10 different department
>> in hierarchical manner.
>>
>> User and department may increase in future.
>>
>> Entire application is developed in Django back end.
>>
>> Used bootstrap for custom report generation.
>>
>> question arises in My mind is
>>
>> Is it Necessary to learn and implement in React/ Angular for front end.
>>
>>
>> Because I am comfortable with current implementation.
>>
>>
>> May I know what are gains i may get or what are the disadvantage i may
>> suffer in future.
>>
>> Kindly guide me to avoid future inconvenience.
>>
>>
>> --
>> Mr Shetty Balaji
>> Asst. Prof.
>> IT Department
>> SGGS I
>> Nanded. My. India
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGWmaMxYMJQ5X1sQ%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK-JoTQQQJnTHwT6dZi5ZUBCAj2L-u3t3KE5G9Snp0j8gk7-eg%40mail.gmail.com.


Re: Necessary to learn React/ Angular with backend Django

2020-01-07 Thread Karan Mittal
Hello friend,
In my opinion if it is working with current implementation you need not add
any react or angular.
Learning perspective they are good but implementation of the same in your
already working project may raise new errors.
That's my opinion, feel free to incorporate them once you have learned and
get the response to do so by your users.
Regards,
Karan Mittal

On Tue, 7 Jan, 2020, 11:17 PM Balaji Shetty,  wrote:

> Hi
>
> Currently i deployed application on pythonanywhere. It is online office
> file management system with around 100 users under 10 different department
> in hierarchical manner.
>
> User and department may increase in future.
>
> Entire application is developed in Django back end.
>
> Used bootstrap for custom report generation.
>
> question arises in My mind is
>
> Is it Necessary to learn and implement in React/ Angular for front end.
>
>
> Because I am comfortable with current implementation.
>
>
> May I know what are gains i may get or what are the disadvantage i may
> suffer in future.
>
> Kindly guide me to avoid future inconvenience.
>
>
> --
> Mr Shetty Balaji
> Asst. Prof.
> IT Department
> SGGS I
> Nanded. My. India
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGWmaMxYMJQ5X1sQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%40mail.gmail.com.


Re: Looking for offline messaging sample app

2020-01-07 Thread Ram
Hi,

Thank you all. Let me add my answers to each one as follows.

@Motaz: Messages mean not SMS. It is only offline message. Let me add the
process here . Interested party contact Classified Ad owner by submitting a
message by clicking contact button for that Ad > then Ad owner get notified
by registered email saying that you have a message for your Ad > then Ad
owner come back to the site where ever he/she posted the Ad and checked the
message > further communication will happen in the same loop until buy/sell
transaction completes.

@Ahmed :  We checked django-postman
 app but this does
not have settings.py to built as a sample project. If you have latest
working one, we would like to create a project and review the source code.

@Dev: Let us look at your MailService too.

Best regards,
~Ram


On Tue, Jan 7, 2020 at 5:24 AM Dev Joshi  wrote:

> Well, I am also new to django. I have made an app that is like a mail
> service( Not totally but you can exchange messages). So you can look at the
> repo on github for reference. I AM STILL UPDATING THIS PROJECT SO DON'T
> EXPECT IT TO BE TOTALLY BUG FREE.
>
> Github Repo :-  https://github.com/DevJoshi030/MailService
>
> Hope you find it usefull.
>
> Regards
>
>
> On Tue, 7 Jan 2020, 3:12 pm Motaz Hejaze,  wrote:
>
>> By saying "messages" you mean sms ??
>>
>> On Tue, 7 Jan 2020, 2:52 am Ram,  wrote:
>>
>>> Hi,
>>> We are developing a classifieds module and for which we need to add
>>> 1. offline messaging feature so that registered members can submit
>>> messages each other
>>> 2. messages will be persisted in each member profile's inbox
>>> 3. members will be notified in their registered email about new message
>>> but not the actual message in the email content
>>> 4. This is not an actual chat messaging
>>>
>>> I appreciate if someone has implemented this kind of app or what are the
>>> possible features/functions available by default in Django FWK so that we
>>> can make use of such features.
>>>
>>> Best regards,
>>> ~Ram
>>>
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CA%2BOi5F2uREqyN4POdqxyK-qK7Odj%2B9uQKwneJ00J-7f-DNGScQ%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHV4E-f8H%2B%2B-5b2CoG4r_HmQu%3DqHErjYjn-UFWV12%2BYT9toWww%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAErYs5_CQ7%2BppC2PF-TRkHzskkgraOyBJx-S7uG6OU95yHUM5Q%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BOi5F130E%3D0%3DydqW8r9h56_PQctNwUGAqEkPegy_RE_N7UHDg%40mail.gmail.com.


Necessary to learn React/ Angular with backend Django

2020-01-07 Thread Balaji Shetty
Hi

Currently i deployed application on pythonanywhere. It is online office
file management system with around 100 users under 10 different department
in hierarchical manner.

User and department may increase in future.

Entire application is developed in Django back end.

Used bootstrap for custom report generation.

question arises in My mind is

Is it Necessary to learn and implement in React/ Angular for front end.


Because I am comfortable with current implementation.


May I know what are gains i may get or what are the disadvantage i may
suffer in future.

Kindly guide me to avoid future inconvenience.


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I
Nanded. My. India

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGWmaMxYMJQ5X1sQ%40mail.gmail.com.


Re: Override value of a TextField class method.

2020-01-07 Thread Fabio da Silva Pedro
OK, thank's for this!

Em ter., 7 de jan. de 2020 às 03:03, Mohamed A  escreveu:

> Hint:.. __init__ is a constructor not any method.
>
> Le lun. 6 jan. 2020 à 23:02, Fabio da Silva Pedro <
> fabio.silvape...@gmail.com> a écrit :
>
>> Easy. You need to provide attrs as dict to the new object.
>>>
>>>
>> Ok, I thought about that too, but I don't know how to do it, I copied the
>> whole method and pasted it into my model and tried to access its
>> superclass, but I didn't get it!
>> Maybe I'm doing something wrong yet.
>>
>> Would you have any examples for me?
>>
>> I can easily do this with jQuery, but I want to learn how to do this
>> using just Django and for that I still have little experience in method
>> override.
>>
>> best regards!
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAGE5jT83u5wahCwwzfF2b0td_MzEgj9L-DV4e9DZH8mcWq7G0Q%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJenkLCaqXO15urag46XLKzpOoNwbzOay5H1n-Pn3NovhssL%3DA%40mail.gmail.com
> 
> .
>


-- 
*Fábio S. Pedro*
(21) 97569-7573(WhatsApp).

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGE5jT9rB5K%2BZF8mSeU%3DeWdOd%3D6SUdde3BZqO%3Drct4h2jAL5jw%40mail.gmail.com.


Re: Looking for offline messaging sample app

2020-01-07 Thread Dev Joshi
Well, I am also new to django. I have made an app that is like a mail
service( Not totally but you can exchange messages). So you can look at the
repo on github for reference. I AM STILL UPDATING THIS PROJECT SO DON'T
EXPECT IT TO BE TOTALLY BUG FREE.

Github Repo :-  https://github.com/DevJoshi030/MailService

Hope you find it usefull.

Regards


On Tue, 7 Jan 2020, 3:12 pm Motaz Hejaze,  wrote:

> By saying "messages" you mean sms ??
>
> On Tue, 7 Jan 2020, 2:52 am Ram,  wrote:
>
>> Hi,
>> We are developing a classifieds module and for which we need to add
>> 1. offline messaging feature so that registered members can submit
>> messages each other
>> 2. messages will be persisted in each member profile's inbox
>> 3. members will be notified in their registered email about new message
>> but not the actual message in the email content
>> 4. This is not an actual chat messaging
>>
>> I appreciate if someone has implemented this kind of app or what are the
>> possible features/functions available by default in Django FWK so that we
>> can make use of such features.
>>
>> Best regards,
>> ~Ram
>>
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CA%2BOi5F2uREqyN4POdqxyK-qK7Odj%2B9uQKwneJ00J-7f-DNGScQ%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHV4E-f8H%2B%2B-5b2CoG4r_HmQu%3DqHErjYjn-UFWV12%2BYT9toWww%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAErYs5_CQ7%2BppC2PF-TRkHzskkgraOyBJx-S7uG6OU95yHUM5Q%40mail.gmail.com.


Re: Looking for offline messaging sample app

2020-01-07 Thread Ahmed Ishtiaque
I had used django-postman
 for a similar use
case. It's not been worked on for quite some time now, but it was fully
functional the last time I'd used it.

On Mon, Jan 6, 2020 at 7:52 PM Ram  wrote:

> Hi,
> We are developing a classifieds module and for which we need to add
> 1. offline messaging feature so that registered members can submit
> messages each other
> 2. messages will be persisted in each member profile's inbox
> 3. members will be notified in their registered email about new message
> but not the actual message in the email content
> 4. This is not an actual chat messaging
>
> I appreciate if someone has implemented this kind of app or what are the
> possible features/functions available by default in Django FWK so that we
> can make use of such features.
>
> Best regards,
> ~Ram
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F2uREqyN4POdqxyK-qK7Odj%2B9uQKwneJ00J-7f-DNGScQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKizqR7Lnijs%3D7v8xg%3D_M_%2BY1AX8Jitz9mmnoqRFw-AM0OhFtg%40mail.gmail.com.


Re: Looking for offline messaging sample app

2020-01-07 Thread Motaz Hejaze
By saying "messages" you mean sms ??

On Tue, 7 Jan 2020, 2:52 am Ram,  wrote:

> Hi,
> We are developing a classifieds module and for which we need to add
> 1. offline messaging feature so that registered members can submit
> messages each other
> 2. messages will be persisted in each member profile's inbox
> 3. members will be notified in their registered email about new message
> but not the actual message in the email content
> 4. This is not an actual chat messaging
>
> I appreciate if someone has implemented this kind of app or what are the
> possible features/functions available by default in Django FWK so that we
> can make use of such features.
>
> Best regards,
> ~Ram
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F2uREqyN4POdqxyK-qK7Odj%2B9uQKwneJ00J-7f-DNGScQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-f8H%2B%2B-5b2CoG4r_HmQu%3DqHErjYjn-UFWV12%2BYT9toWww%40mail.gmail.com.


Re: TemplateDoesNotExist at /accounts/logout/ logout.html

2020-01-07 Thread Kasper Laudrup

Hi Parvez.

On 07/01/2020 10.13, Parvez Khan Pathan wrote:
i'm new to django and learning from Udemy Bootcamp course but i make 
Blog Post WEb using django Everything is work good Except Logout
can you please help out where made i mistake... 


If you read the error messages it clearly shows what the problem is and 
more or less giving you a solution as well.


You need a template called "logout.html" and the error page tells you 
where it was looking for that template in the "Template-loader 
postmortem" part.


This guide might be helpful:

https://simpleisbetterthancomplex.com/tutorial/2016/06/27/how-to-use-djangos-built-in-login-system.html

Hope that helps.

Kind regards,

Kasper Laudrup

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e33a78d9-6f44-dcce-85d9-cd251521ebf4%40stacktrace.dk.


Re: TemplateDoesNotExist at /accounts/logout/ logout.html

2020-01-07 Thread ramadhan ngallen
Hello
The template directory(name) is not correct. Kindly change template directory 
to "registration/logout.html" instead of "logout.html"

Best Regards

Ramadhan Ngallen
Software Consultant

Phone: +255 715 200 997 | ngall...@gmail.com
On 7 Jan 2020, 12:24 +0300, Bruckner de Villiers 
, wrote:
> Parvez,
> Please paste the code, not a pic of the code – it’s too small to read.
>
> Bruckner de Villiers
> 083 625 1086
>
> From:  on behalf of Parvez Khan Pathan 
> 
> Reply to: 
> Date: Tuesday, 07 January 2020 at 11:15
> To: Django users 
> Subject: TemplateDoesNotExist at /accounts/logout/ logout.html
>
> Hello & afternoon
>
> i'm new to django and learning from Udemy Bootcamp course but i make Blog 
> Post WEb using django Everything is work good Except Logout
> can you please help out where made i mistake... even i check many 
> Stackoverflow solution but not work for me even Django Documentation is 
> complex too!
>
> This is URL Code:
>
> 
>
>
> This is Template error:
>
> 
>
>
>
> Regard;
> Parvez Khan Pathan
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/7a56322b-aa52-47e8-8398-e4daec2795ca%40googlegroups.com.
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/A438740E-9A01-48D1-A5D4-97E48F0685D8%40gmail.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0a7e4e89-7686-4ef8-9724-e5f88519a190%40Spark.