Re: Django Admin Shortcuts

2024-05-29 Thread Faisal Mahmood
Hi, First of all Sorry for the late reply

Okay let's go...

It is generally not recommended to authenticate auto-generated users
directly from inspect_db without proper user model fields and permissions.
Here's why:

   -

   Security Concerns:
   - AbstractBaseUser and PermissionsMixin provide essential
  functionalities for user authentication and authorization. They
  handle password hashing, permissions management, and other security
  aspects. Bypassing these models might lead to vulnerabilities like
  storing passwords in plain text or granting unauthorized access.
   -

   Maintainability Issues:
   - Using inspect_db creates a tight coupling between your authentication
  logic and the specific database schema. This makes it difficult to
  modify the user model or switch databases in the future.

Here are some alternative approaches to consider:

   1.

   Migrate User Model Fields:
   - Gradually migrate your existing user model to include the necessary
  fields from AbstractBaseUser and PermissionsMixin. This ensures
  proper authentication and authorization mechanisms.
   2.

   Custom User Model:
   - Create a custom user model that inherits from AbstractBaseUser and
  includes any additional fields you need. This provides a more secure
  and maintainable approach.
   3.

   Alternative Authentication Methods:
   - Depending on your application's requirements, you might explore
  alternative authentication methods like API keys, tokens, or social
  logins. These can be suitable for non-human users or specific use
  cases.

While it might be technically possible to authenticate through inspect_db,
it's strongly advised against it due to the security and maintainability
drawbacks. Consider the alternative approaches mentioned above for a more
secure and robust solution.

On Wed, May 29, 2024, 3:06 AM utibe solomon  wrote:

> Hey bro is it possible to authenticate an auto generated user from
> inspect_db without necessarily having to migrate fields that come with
> using abstractbaseuser and permissions mixin
>
>
> On Tue, 28 May 2024 at 20:39, Mike Schem 
> wrote:
>
>> Hey Faisal,
>>
>> Thanks for taking the time to read the PR and provide some feedback. I
>> copied all of your concerns here and responded to them accordingly. Please
>> let me know if you have any further questions!
>>
>> 1.
>> Have you considered including a section in the Django admin documentation
>> that outlines the new shortcuts and how to use them?
>>
>> Yes, I absolutely will document this, I was thinking about adding it to
>> the "Other Topics" section here:
>> https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#other-topics.
>> What do you think?
>>
>> 2.
>>  Are the keyboard shortcuts configurable?
>>
>> Not yet, but I would be open to doing this as a future PR.
>>
>> 3.
>> Have you tested the keyboard shortcuts across different browsers and
>> operating systems to ensure consistent behavior?
>>
>>  Any specific browsers or versions where you faced issues?
>>
>> Yes, we've tested on pretty much all major OSs and browsers and have seen
>> consistent behavior.  I've been running this in my company for over a year
>> now. It's been great!
>>
>> 4.
>> What considerations have been made regarding accessibility?
>>
>> I'd say this is largely an accessibility feature since it would allow for
>> the visually impaired to save without needing to see the save buttons,
>> which is great!
>>
>> 5.
>> How does the implementation handle potential conflicts with existing
>> browser or system shortcuts?
>>
>> There is an existing ctrl + S for saving browser pages as HTML, frakely,
>> I don't think that should be the default for users. When saving the page,
>> the action should not be to save it as html, but instead save the content
>> of the admin.
>>
>> 6.
>> Have you noticed any performance impacts with the addition of these
>> shortcuts? Ensuring that the admin interface remains performant is
>> important for all users.
>>
>> No, no performance issues. It's a very simple code change without much
>> impact.
>>
>> On Sat, May 25, 2024 at 7:25 AM Faisal Mahmood <
>> faisalbhagri2...@gmail.com> wrote:
>>
>>> Hi *Mike Schem,
>>>
>>> Thank you for reaching out and for your work on adding keyboard
>>> shortcuts to the Django admin. This is a valuable feature that can greatly
>>> enhance productivity for many users. We appreciate your contribution and
>>> the effort you've put into this PR.
>>>
>>> We have reviewed your pull request and are excited about its potential.
>>> Here are some thoughts and questions we have:
>>>
>>> 1.
>>> Have you considered including a section in the Django admin
>>> documentation that outlines the new shortcuts and how to use them?
>>>
>>> 2.
>>>  Are the keyboard shortcuts configurable?
>>>
>>> 3.
>>> Have you tested the keyboard shortcuts across different browsers and
>>> operating systems to ensure consistent behavior?
>>>
>>>  Any specific browsers 

Re: Django Admin Shortcuts

2024-05-28 Thread utibe solomon
Hey bro is it possible to authenticate an auto generated user from
inspect_db without necessarily having to migrate fields that come with
using abstractbaseuser and permissions mixin


On Tue, 28 May 2024 at 20:39, Mike Schem  wrote:

> Hey Faisal,
>
> Thanks for taking the time to read the PR and provide some feedback. I
> copied all of your concerns here and responded to them accordingly. Please
> let me know if you have any further questions!
>
> 1.
> Have you considered including a section in the Django admin documentation
> that outlines the new shortcuts and how to use them?
>
> Yes, I absolutely will document this, I was thinking about adding it to
> the "Other Topics" section here:
> https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#other-topics.
> What do you think?
>
> 2.
>  Are the keyboard shortcuts configurable?
>
> Not yet, but I would be open to doing this as a future PR.
>
> 3.
> Have you tested the keyboard shortcuts across different browsers and
> operating systems to ensure consistent behavior?
>
>  Any specific browsers or versions where you faced issues?
>
> Yes, we've tested on pretty much all major OSs and browsers and have seen
> consistent behavior.  I've been running this in my company for over a year
> now. It's been great!
>
> 4.
> What considerations have been made regarding accessibility?
>
> I'd say this is largely an accessibility feature since it would allow for
> the visually impaired to save without needing to see the save buttons,
> which is great!
>
> 5.
> How does the implementation handle potential conflicts with existing
> browser or system shortcuts?
>
> There is an existing ctrl + S for saving browser pages as HTML, frakely, I
> don't think that should be the default for users. When saving the page, the
> action should not be to save it as html, but instead save the content of
> the admin.
>
> 6.
> Have you noticed any performance impacts with the addition of these
> shortcuts? Ensuring that the admin interface remains performant is
> important for all users.
>
> No, no performance issues. It's a very simple code change without much
> impact.
>
> On Sat, May 25, 2024 at 7:25 AM Faisal Mahmood 
> wrote:
>
>> Hi *Mike Schem,
>>
>> Thank you for reaching out and for your work on adding keyboard shortcuts
>> to the Django admin. This is a valuable feature that can greatly enhance
>> productivity for many users. We appreciate your contribution and the effort
>> you've put into this PR.
>>
>> We have reviewed your pull request and are excited about its potential.
>> Here are some thoughts and questions we have:
>>
>> 1.
>> Have you considered including a section in the Django admin documentation
>> that outlines the new shortcuts and how to use them?
>>
>> 2.
>>  Are the keyboard shortcuts configurable?
>>
>> 3.
>> Have you tested the keyboard shortcuts across different browsers and
>> operating systems to ensure consistent behavior?
>>
>>  Any specific browsers or versions where you faced issues?
>>
>> 4.
>> What considerations have been made regarding accessibility?
>>
>> 5.
>> How does the implementation handle potential conflicts with existing
>> browser or system shortcuts?
>>
>> 6.
>> Have you noticed any performance impacts with the addition of these
>> shortcuts? Ensuring that the admin interface remains performant is
>> important for all users.
>>
>> We believe these questions can help further refine the feature and ensure
>> it meets the needs of the wider Django community. Once again, thank you for
>> your contribution. We look forward to your responses and further discussion.
>>
>> Best regards,
>> [Faisal Mahmood]
>>
>> On Fri, May 24, 2024, 10:32 PM Mike Schem 
>> wrote:
>>
>>> Hey all,
>>>
>>> I’m seeking some support and feedback on my PR. I’ve added keyboard
>>> shortcuts to the Django admin for the save actions. We use it at my
>>> company, and it’s pretty helpful for power users. I’d love to hear what the
>>> community thinks.
>>>
>>> https://github.com/django/django/pull/17599
>>>
>>>
>>> Mike Schem
>>> Senior Software Engineer
>>> String King Lacrosse, LLC
>>> StringKing, Inc.
>>> 19100 South Vermont Avenue
>>> 
>>> Gardena, CA  90248
>>> 
>>> 310-699-7175 Mobile
>>>
>>> m...@stringking.com 
>>> StringKing.com  | uSTRING.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/CALUzFO1GyhQct422sU6WDRC3ksYf-qg8qgtR%2BwXGOwrjWDn2_A%40mail.gmail.com
>>> 

Re: Django Admin Shortcuts

2024-05-28 Thread Faisal Mahmood
█▀ █▀█ █▀█ █░
█▄ █▄█ █▄█ █▄

That's great to hear keep it up. And have  a great day ahead.
I'm nothing but a student of Django.
Hopefully my questions doesn't bother you too much. 


Great!

And once again thanks a lot for your hard work.
I will be glad if you need any assistance from me in the future.

Regards
Faisal Mahmood
faisalbhagri2...@gmail.com
WhatsApp:   +923013181026



On Wed, May 29, 2024, 12:38 AM Mike Schem  wrote:

> Hey Faisal,
>
> Thanks for taking the time to read the PR and provide some feedback. I
> copied all of your concerns here and responded to them accordingly. Please
> let me know if you have any further questions!
>
> 1.
> Have you considered including a section in the Django admin documentation
> that outlines the new shortcuts and how to use them?
>
> Yes, I absolutely will document this, I was thinking about adding it to
> the "Other Topics" section here:
> https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#other-topics.
> What do you think?
>
> 2.
>  Are the keyboard shortcuts configurable?
>
> Not yet, but I would be open to doing this as a future PR.
>
> 3.
> Have you tested the keyboard shortcuts across different browsers and
> operating systems to ensure consistent behavior?
>
>  Any specific browsers or versions where you faced issues?
>
> Yes, we've tested on pretty much all major OSs and browsers and have seen
> consistent behavior.  I've been running this in my company for over a year
> now. It's been great!
>
> 4.
> What considerations have been made regarding accessibility?
>
> I'd say this is largely an accessibility feature since it would allow for
> the visually impaired to save without needing to see the save buttons,
> which is great!
>
> 5.
> How does the implementation handle potential conflicts with existing
> browser or system shortcuts?
>
> There is an existing ctrl + S for saving browser pages as HTML, frakely, I
> don't think that should be the default for users. When saving the page, the
> action should not be to save it as html, but instead save the content of
> the admin.
>
> 6.
> Have you noticed any performance impacts with the addition of these
> shortcuts? Ensuring that the admin interface remains performant is
> important for all users.
>
> No, no performance issues. It's a very simple code change without much
> impact.
>
> On Sat, May 25, 2024 at 7:25 AM Faisal Mahmood 
> wrote:
>
>> Hi *Mike Schem,
>>
>> Thank you for reaching out and for your work on adding keyboard shortcuts
>> to the Django admin. This is a valuable feature that can greatly enhance
>> productivity for many users. We appreciate your contribution and the effort
>> you've put into this PR.
>>
>> We have reviewed your pull request and are excited about its potential.
>> Here are some thoughts and questions we have:
>>
>> 1.
>> Have you considered including a section in the Django admin documentation
>> that outlines the new shortcuts and how to use them?
>>
>> 2.
>>  Are the keyboard shortcuts configurable?
>>
>> 3.
>> Have you tested the keyboard shortcuts across different browsers and
>> operating systems to ensure consistent behavior?
>>
>>  Any specific browsers or versions where you faced issues?
>>
>> 4.
>> What considerations have been made regarding accessibility?
>>
>> 5.
>> How does the implementation handle potential conflicts with existing
>> browser or system shortcuts?
>>
>> 6.
>> Have you noticed any performance impacts with the addition of these
>> shortcuts? Ensuring that the admin interface remains performant is
>> important for all users.
>>
>> We believe these questions can help further refine the feature and ensure
>> it meets the needs of the wider Django community. Once again, thank you for
>> your contribution. We look forward to your responses and further discussion.
>>
>> Best regards,
>> [Faisal Mahmood]
>>
>> On Fri, May 24, 2024, 10:32 PM Mike Schem 
>> wrote:
>>
>>> Hey all,
>>>
>>> I’m seeking some support and feedback on my PR. I’ve added keyboard
>>> shortcuts to the Django admin for the save actions. We use it at my
>>> company, and it’s pretty helpful for power users. I’d love to hear what the
>>> community thinks.
>>>
>>> https://github.com/django/django/pull/17599
>>>
>>>
>>> Mike Schem
>>> Senior Software Engineer
>>> String King Lacrosse, LLC
>>> StringKing, Inc.
>>> 19100 South Vermont Avenue
>>> 
>>> Gardena, CA  90248
>>> 
>>> 310-699-7175 Mobile
>>>
>>> m...@stringking.com 
>>> StringKing.com  | uSTRING.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 

Re: Django Admin Shortcuts

2024-05-28 Thread Mike Schem
Hey Faisal,

Thanks for taking the time to read the PR and provide some feedback. I
copied all of your concerns here and responded to them accordingly. Please
let me know if you have any further questions!

1.
Have you considered including a section in the Django admin documentation
that outlines the new shortcuts and how to use them?

Yes, I absolutely will document this, I was thinking about adding it to the
"Other Topics" section here:
https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#other-topics. What
do you think?

2.
 Are the keyboard shortcuts configurable?

Not yet, but I would be open to doing this as a future PR.

3.
Have you tested the keyboard shortcuts across different browsers and
operating systems to ensure consistent behavior?

 Any specific browsers or versions where you faced issues?

Yes, we've tested on pretty much all major OSs and browsers and have seen
consistent behavior.  I've been running this in my company for over a year
now. It's been great!

4.
What considerations have been made regarding accessibility?

I'd say this is largely an accessibility feature since it would allow for
the visually impaired to save without needing to see the save buttons,
which is great!

5.
How does the implementation handle potential conflicts with existing
browser or system shortcuts?

There is an existing ctrl + S for saving browser pages as HTML, frakely, I
don't think that should be the default for users. When saving the page, the
action should not be to save it as html, but instead save the content of
the admin.

6.
Have you noticed any performance impacts with the addition of these
shortcuts? Ensuring that the admin interface remains performant is
important for all users.

No, no performance issues. It's a very simple code change without much
impact.

On Sat, May 25, 2024 at 7:25 AM Faisal Mahmood 
wrote:

> Hi *Mike Schem,
>
> Thank you for reaching out and for your work on adding keyboard shortcuts
> to the Django admin. This is a valuable feature that can greatly enhance
> productivity for many users. We appreciate your contribution and the effort
> you've put into this PR.
>
> We have reviewed your pull request and are excited about its potential.
> Here are some thoughts and questions we have:
>
> 1.
> Have you considered including a section in the Django admin documentation
> that outlines the new shortcuts and how to use them?
>
> 2.
>  Are the keyboard shortcuts configurable?
>
> 3.
> Have you tested the keyboard shortcuts across different browsers and
> operating systems to ensure consistent behavior?
>
>  Any specific browsers or versions where you faced issues?
>
> 4.
> What considerations have been made regarding accessibility?
>
> 5.
> How does the implementation handle potential conflicts with existing
> browser or system shortcuts?
>
> 6.
> Have you noticed any performance impacts with the addition of these
> shortcuts? Ensuring that the admin interface remains performant is
> important for all users.
>
> We believe these questions can help further refine the feature and ensure
> it meets the needs of the wider Django community. Once again, thank you for
> your contribution. We look forward to your responses and further discussion.
>
> Best regards,
> [Faisal Mahmood]
>
> On Fri, May 24, 2024, 10:32 PM Mike Schem 
> wrote:
>
>> Hey all,
>>
>> I’m seeking some support and feedback on my PR. I’ve added keyboard
>> shortcuts to the Django admin for the save actions. We use it at my
>> company, and it’s pretty helpful for power users. I’d love to hear what the
>> community thinks.
>>
>> https://github.com/django/django/pull/17599
>>
>>
>> Mike Schem
>> Senior Software Engineer
>> String King Lacrosse, LLC
>> StringKing, Inc.
>> 19100 South Vermont Avenue
>> 
>> Gardena, CA  90248
>> 
>> 310-699-7175 Mobile
>>
>> m...@stringking.com 
>> StringKing.com  | uSTRING.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/CALUzFO1GyhQct422sU6WDRC3ksYf-qg8qgtR%2BwXGOwrjWDn2_A%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
> 

Re: Django Admin Shortcuts

2024-05-25 Thread Faisal Mahmood
Hi *Mike Schem,

Thank you for reaching out and for your work on adding keyboard shortcuts
to the Django admin. This is a valuable feature that can greatly enhance
productivity for many users. We appreciate your contribution and the effort
you've put into this PR.

We have reviewed your pull request and are excited about its potential.
Here are some thoughts and questions we have:

1.
Have you considered including a section in the Django admin documentation
that outlines the new shortcuts and how to use them?

2.
 Are the keyboard shortcuts configurable?

3.
Have you tested the keyboard shortcuts across different browsers and
operating systems to ensure consistent behavior?

 Any specific browsers or versions where you faced issues?

4.
What considerations have been made regarding accessibility?

5.
How does the implementation handle potential conflicts with existing
browser or system shortcuts?

6.
Have you noticed any performance impacts with the addition of these
shortcuts? Ensuring that the admin interface remains performant is
important for all users.

We believe these questions can help further refine the feature and ensure
it meets the needs of the wider Django community. Once again, thank you for
your contribution. We look forward to your responses and further discussion.

Best regards,
[Faisal Mahmood]

On Fri, May 24, 2024, 10:32 PM Mike Schem  wrote:

> Hey all,
>
> I’m seeking some support and feedback on my PR. I’ve added keyboard
> shortcuts to the Django admin for the save actions. We use it at my
> company, and it’s pretty helpful for power users. I’d love to hear what the
> community thinks.
>
> https://github.com/django/django/pull/17599
>
>
> Mike Schem
> Senior Software Engineer
> String King Lacrosse, LLC
> StringKing, Inc.
> 19100 South Vermont Avenue
> 
> Gardena, CA  90248
> 
> 310-699-7175 Mobile
>
> m...@stringking.com 
> StringKing.com  | uSTRING.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/CALUzFO1GyhQct422sU6WDRC3ksYf-qg8qgtR%2BwXGOwrjWDn2_A%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/CAP3eejy%3DHWk82qHU5uNaWAYDTRC1-N1A9fUVkc%2B_avj5FmUYQA%40mail.gmail.com.


Re: Django Admin does not use `get_FOO_display`

2023-04-05 Thread Opeoluwa Fatunmbi
The reason why your overridden get_status_display method is not being
applied in the Django admin is because the admin's display_for_field
function uses the flatchoices attribute of the field to retrieve the
display value of the field's current value.

The flatchoices attribute is a list of two-tuples that represent the
choices available for the field, flattened into a single list. The first
element of each tuple is the value, and the second element is the display
string. The display_for_field function uses the flatchoices list to
retrieve the display value of the current value, rather than calling the
field's get_FOO_display method.

To make use of your overridden get_status_display method in the admin, you
can set the flatchoices attribute of the field to None or remove the
attribute altogether. This will cause the admin to call the
get_status_display method instead of the display_for_field function.


class MyModelAdmin(admin.ModelAdmin): form = MyModelForm class
MyModelForm(forms.ModelForm): class Meta: model = MyModel fields =
'__all__' def __init__(self, *args, **kwargs): super().__init__(*args,
**kwargs) # Remove the flatchoices attribute of the status field
self.fields['status'].flatchoices = None

In this example, we're creating a MyModelForm that is used in the
MyModelAdmin. We're overriding the __init__ method of the form to remove
the flatchoices attribute of the status field, which will cause the admin
to call the get_status_display method instead.










On Tue, 4 Apr 2023 at 17:43, 'Ibrahim Abou Elenein' via Django users <
django-users@googlegroups.com> wrote:

> I had a model having a field that uses Choices
> status = FSMField(default=STATUSES.PENDING, choices=STATUSES,
> protected=True)
>
> I did override  the `get_status_display ` and its effect was not applied
> in the Django admin
>
> I looked up Django code and found
> ```
> def display_for_field(value, field, empty_value_display): from
> django.contrib.admin.templatetags.admin_list import _boolean_icon if
> getattr(field, "flatchoices", None): return
> dict(field.flatchoices).get(value, empty_value_display)
> ``` I changed it to use get_FOO_display and it worked,
> my question is why does it have this behavior? and how in my application
> can I make use of this?
>
> Thank you.
>
> --
> 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/7dabd818-4b70-409e-8af3-482deb3an%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/CAKVBneK9A4QZ72ibUzyHc60SsE6GY4Z7Gua29KObj9m-R%3DVLrA%40mail.gmail.com.


Re: Django Admin

2023-03-24 Thread Jd Mehra

- 

Clear the browser cache and cookies and then try to log in again. Sometimes 
an old CSRF token can be stored in the browser cache and can cause issues.
- 




On Friday, 24 March 2023 at 07:50:37 UTC+5:30 Ikrombek wrote:

>
> Hello,
> How can I use dental teeth section. For example, do I need to include 32 
> fields from the model to specify 32 teeth, or is there a way to do it in 
> one?
> On Tuesday, March 14, 2023 at 5:39:27 AM UTC+5 Muhammad Juwaini Abdul 
> Rahman wrote:
>
>> In my previous case, I only use this:
>>
>> CSRF_TRUSTED_ORIGINS = ['https://your site url',]
>>
>> On Tue, 14 Mar 2023 at 04:33, Prosper Lekia  wrote:
>>
>>> This is how I deal with all csrf related issues.
>>>
>>> Make sure csrf MiddleWare is in your MiddleWare list 
>>>
>>> 'django.middleware.csrf.CsrfViewMiddleware'
>>>
>>> Add the settings below in your settings.py to prevent all csrf related 
>>> issues
>>>
>>> CSRF_TRUSTED_ORIGINS = ['https://your site url',]
>>> SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')
>>> CSRF_USE_SESSIONS = False
>>> CSRF_COOKIE_SECURE = True
>>> SECURE_BROWSER_XSS_FILTER = True
>>>
>>> CORS_ALLOW_CREDENTIALS = True
>>> CORS_ORIGIN_ALLOW_ALL = True
>>>
>>>
>>> SECURE_CONTENT_TYPE_NOSNIFF = True
>>> SECURE_FRAME_DENY = True
>>> SECURE_HSTS_SECONDS = 2592000
>>> SECURE_HSTS_INCLUDE_SUBDOMAINS = True
>>> SECURE_HSTS_PRELOAD = True
>>> X_FRAME_OPTIONS = 'SAMEORIGIN'
>>> SECURE_REFERRER_POLICY = 'same-origin
>>>
>>> On Saturday, March 11, 2023 at 7:04:40 PM UTC+1 James Hunt wrote:
>>>
 Hi there. I am fairly new to Django but have had previous success with 
 creating an app and being able to access the Admin page.
 Recently, if I attempt to access the admin page of a new Django app it 
 throws the CSRF error upon trying to log in!!!

 I have attempted several ways to bypass this error including adding 
 allowed hosts but I cant seem to get past this issue.

 Can someone please provide me with the definitive way of stopping CSRF 
 error when simply trying to access the admin part of Django? I mean there 
 are no post functions that really apply to this feature so I cant 
 understand the CSRF token.

 I cant get past this issue which means I can never access the admin 
 page!!

 Please help.

 Regards

 James

>>> -- 
>>>
>> 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...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/3f7e8ff3-3619-4ddf-8517-0ee3a613ed20n%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/491c2ea0-c962-4392-9777-f95d1e873a62n%40googlegroups.com.


Re: Django Admin

2023-03-23 Thread Ikrombek

Hello,
How can I use dental teeth section. For example, do I need to include 32 
fields from the model to specify 32 teeth, or is there a way to do it in 
one?
On Tuesday, March 14, 2023 at 5:39:27 AM UTC+5 Muhammad Juwaini Abdul 
Rahman wrote:

> In my previous case, I only use this:
>
> CSRF_TRUSTED_ORIGINS = ['https://your site url',]
>
> On Tue, 14 Mar 2023 at 04:33, Prosper Lekia  wrote:
>
>> This is how I deal with all csrf related issues.
>>
>> Make sure csrf MiddleWare is in your MiddleWare list 
>>
>> 'django.middleware.csrf.CsrfViewMiddleware'
>>
>> Add the settings below in your settings.py to prevent all csrf related 
>> issues
>>
>> CSRF_TRUSTED_ORIGINS = ['https://your site url',]
>> SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')
>> CSRF_USE_SESSIONS = False
>> CSRF_COOKIE_SECURE = True
>> SECURE_BROWSER_XSS_FILTER = True
>>
>> CORS_ALLOW_CREDENTIALS = True
>> CORS_ORIGIN_ALLOW_ALL = True
>>
>>
>> SECURE_CONTENT_TYPE_NOSNIFF = True
>> SECURE_FRAME_DENY = True
>> SECURE_HSTS_SECONDS = 2592000
>> SECURE_HSTS_INCLUDE_SUBDOMAINS = True
>> SECURE_HSTS_PRELOAD = True
>> X_FRAME_OPTIONS = 'SAMEORIGIN'
>> SECURE_REFERRER_POLICY = 'same-origin
>>
>> On Saturday, March 11, 2023 at 7:04:40 PM UTC+1 James Hunt wrote:
>>
>>> Hi there. I am fairly new to Django but have had previous success with 
>>> creating an app and being able to access the Admin page.
>>> Recently, if I attempt to access the admin page of a new Django app it 
>>> throws the CSRF error upon trying to log in!!!
>>>
>>> I have attempted several ways to bypass this error including adding 
>>> allowed hosts but I cant seem to get past this issue.
>>>
>>> Can someone please provide me with the definitive way of stopping CSRF 
>>> error when simply trying to access the admin part of Django? I mean there 
>>> are no post functions that really apply to this feature so I cant 
>>> understand the CSRF token.
>>>
>>> I cant get past this issue which means I can never access the admin 
>>> page!!
>>>
>>> Please help.
>>>
>>> Regards
>>>
>>> James
>>>
>> -- 
>>
> 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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/3f7e8ff3-3619-4ddf-8517-0ee3a613ed20n%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/a1746f7f-6bec-4031-9675-650d9bf41754n%40googlegroups.com.


Re: Django Admin

2023-03-13 Thread Muhammad Juwaini Abdul Rahman
In my previous case, I only use this:

CSRF_TRUSTED_ORIGINS = ['https://your site url',]


On Tue, 14 Mar 2023 at 04:33, Prosper Lekia  wrote:

> This is how I deal with all csrf related issues.
>
> Make sure csrf MiddleWare is in your MiddleWare list
>
> 'django.middleware.csrf.CsrfViewMiddleware'
>
> Add the settings below in your settings.py to prevent all csrf related
> issues
>
> CSRF_TRUSTED_ORIGINS = ['https://your site url',]
> SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')
> CSRF_USE_SESSIONS = False
> CSRF_COOKIE_SECURE = True
> SECURE_BROWSER_XSS_FILTER = True
>
> CORS_ALLOW_CREDENTIALS = True
> CORS_ORIGIN_ALLOW_ALL = True
>
>
> SECURE_CONTENT_TYPE_NOSNIFF = True
> SECURE_FRAME_DENY = True
> SECURE_HSTS_SECONDS = 2592000
> SECURE_HSTS_INCLUDE_SUBDOMAINS = True
> SECURE_HSTS_PRELOAD = True
> X_FRAME_OPTIONS = 'SAMEORIGIN'
> SECURE_REFERRER_POLICY = 'same-origin
>
> On Saturday, March 11, 2023 at 7:04:40 PM UTC+1 James Hunt wrote:
>
>> Hi there. I am fairly new to Django but have had previous success with
>> creating an app and being able to access the Admin page.
>> Recently, if I attempt to access the admin page of a new Django app it
>> throws the CSRF error upon trying to log in!!!
>>
>> I have attempted several ways to bypass this error including adding
>> allowed hosts but I cant seem to get past this issue.
>>
>> Can someone please provide me with the definitive way of stopping CSRF
>> error when simply trying to access the admin part of Django? I mean there
>> are no post functions that really apply to this feature so I cant
>> understand the CSRF token.
>>
>> I cant get past this issue which means I can never access the admin page!!
>>
>> Please help.
>>
>> Regards
>>
>> James
>>
> --
> 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/3f7e8ff3-3619-4ddf-8517-0ee3a613ed20n%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/CAFKhtoSMJcDx5bDfd3bXUsdt5a1x%2BFBaX%3D7KYk5H8wbCHvQT%2Bw%40mail.gmail.com.


Re: Django Admin

2023-03-13 Thread Prosper Lekia
This is how I deal with all csrf related issues.

Make sure csrf MiddleWare is in your MiddleWare list 

'django.middleware.csrf.CsrfViewMiddleware'

Add the settings below in your settings.py to prevent all csrf related 
issues

CSRF_TRUSTED_ORIGINS = ['https://your site url',]
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')
CSRF_USE_SESSIONS = False
CSRF_COOKIE_SECURE = True
SECURE_BROWSER_XSS_FILTER = True

CORS_ALLOW_CREDENTIALS = True
CORS_ORIGIN_ALLOW_ALL = True


SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_FRAME_DENY = True
SECURE_HSTS_SECONDS = 2592000
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_PRELOAD = True
X_FRAME_OPTIONS = 'SAMEORIGIN'
SECURE_REFERRER_POLICY = 'same-origin

On Saturday, March 11, 2023 at 7:04:40 PM UTC+1 James Hunt wrote:

> Hi there. I am fairly new to Django but have had previous success with 
> creating an app and being able to access the Admin page.
> Recently, if I attempt to access the admin page of a new Django app it 
> throws the CSRF error upon trying to log in!!!
>
> I have attempted several ways to bypass this error including adding 
> allowed hosts but I cant seem to get past this issue.
>
> Can someone please provide me with the definitive way of stopping CSRF 
> error when simply trying to access the admin part of Django? I mean there 
> are no post functions that really apply to this feature so I cant 
> understand the CSRF token.
>
> I cant get past this issue which means I can never access the admin page!!
>
> Please help.
>
> Regards
>
> James
>

-- 
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/3f7e8ff3-3619-4ddf-8517-0ee3a613ed20n%40googlegroups.com.


Re: Django Admin

2023-03-13 Thread Starnford Chirwa
Howzt bro

On Sat, 11 Mar 2023, 22:48 Letlaka Tsotetsi,  wrote:

> Please share your code so we can be able to assist you
>
> On Sat, 11 Mar 2023 at 8:04 PM, James Hunt  wrote:
>
>> Hi there. I am fairly new to Django but have had previous success with
>> creating an app and being able to access the Admin page.
>> Recently, if I attempt to access the admin page of a new Django app it
>> throws the CSRF error upon trying to log in!!!
>>
>> I have attempted several ways to bypass this error including adding
>> allowed hosts but I cant seem to get past this issue.
>>
>> Can someone please provide me with the definitive way of stopping CSRF
>> error when simply trying to access the admin part of Django? I mean there
>> are no post functions that really apply to this feature so I cant
>> understand the CSRF token.
>>
>> I cant get past this issue which means I can never access the admin page!!
>>
>> Please help.
>>
>> Regards
>>
>> James
>>
>> --
>> 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/e13c7765-831e-45c5-b091-c8fcfbed19c5n%40googlegroups.com
>> 
>> .
>>
> --
> Letlaka Tsotetsi
> 071 038 1485
> letlak...@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/CAMCgpdJpk3b0c-7G__2-CtyP77%2BcJTmotqZ63dhuTnCNqNxAhg%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/CAFbY-hZMrcL1hjGQnXi3drkov_k9e7UR1WW1BYLRL3DAyb70Pw%40mail.gmail.com.


Re: Django Admin

2023-03-13 Thread Sandip Bhattacharya


> On Mar 13, 2023, at 5:14 AM, James Hunt  wrote:
> 
> I have yet to create a HTML page so I'm not sure that the inclusion of {% 
> csrf_token %} is required. I mean it's just the admin page I am trying to 
> access which is provided by Django and not a page created by me!!!
> 
> I am very surprised there is no fix for this issue!!! I might need to abandon 
> Django and move a different framework given that this issue is at the start 
> of a project!!!

There is clearly something else going on in your setup.

Here is a brand new Django project being created just now.

And the admin interface works without any issue.

https://gist.github.com/sandipb/cb9c9c6ba00603c30cf3a89d4141b2de

Can you check if you missed any steps?

Thanks,
  Sandip

-- 
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/AB3AE217-E571-4754-98EB-AF50C071A8B8%40showmethesource.org.


Re: Django Admin

2023-03-13 Thread Paul Kudla



ok hope i am not adding to the confusion

I ran into this a while back

CSRF errors are usually (in my case anyways) triggered by apache SSL 
setup etc


if you are running Apache + SSL you need to make sure the certificates 
and the SNI ssl naming is setup correctly or the CSRF errors will 
trigger randomly.


of course the ssl cert has to match the site name

this config assumes APACHE + WSGI + SSL etc. and you are running 
multiple virtual sites under apache.


Also note the port 80 redirect (ie everything is directed to the SSL site)

if you are mixing ssl & non-ssl apache / django will get confused and 
trip the CSRF error as well.


relative apache config (httpd.conf):


SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

SSLSessionCache memcache:localhost:11211  <<-- only if using memcache.



then my apache config for a site ?

admin.scom.ca ?


ServerName admin.scom.ca
ServerAlias admin.scom.ca
Redirect permanent / https://admin.scom.ca/



ServerName admin.scom.ca
ServerAlias admin.scom.ca
DocumentRoot /www/admin.scom.ca

Alias /media/ /www/admin.scom.ca/media/
Alias /static/ /www/admin.scom.ca/statics/
Alias /statics/ /www/admin.scom.ca/statics/


  Options FollowSymLinks
  AllowOverride None
  Require all granted


SSLEngine on
SSLProtocol all
SSLCertificateFile /www/admin.scom.ca/ssl/admin.scom.ca.crt
SSLCertificateKeyFile /www/admin.scom.ca/ssl/admin.scom.ca.key
SSLCertificateChainFile /www/admin.scom.ca/ssl/admin.scom.ca.chain



SuexecUserGroup www www

##Below only used if running WSGI##

WSGIDaemonProcess adminscomcassl user=www group=www processes=10 threads=20
WSGIProcessGroup adminscomcassl
WSGIApplicationGroup %{GLOBAL}
WSGIImportScript /www/admin.scom.ca/django.wsgi 
process-group=adminscomcassl application-group=%{GLOBAL}


WSGIScriptAlias / /www/admin.scom.ca/django.wsgi

##End of WSGI##


SecFilterEngine Off
SecFilterScanPOST Off




Order Deny,Allow
Deny from All




php_admin_value open_basedir /www/admin.scom.ca:/var/log/



php_admin_value sys_temp_dir /www/admin.scom.ca/tmp/



php_admin_value session.save_path /www/admin.scom.ca/tmp/



php_admin_value soap.wsdl_cache_dir /www/admin.scom.ca/tmp/



php_admin_value upload_tmp_dir /www/admin.scom.ca/tmp



AllowOverride All
php_value session.save_path "/www/admin.scom.ca/"










Happy Monday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services 
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email p...@scom.ca

On 3/12/2023 5:44 AM, Muhammad Juwaini Abdul Rahman wrote:

I think you need to add the following in settings.py:

CSRF_TRUSTED_ORIGIN = ('')



On Sun, 12 Mar 2023 at 02:04, James Hunt > wrote:


Hi there. I am fairly new to Django but have had previous success
with creating an app and being able to access the Admin page.
Recently, if I attempt to access the admin page of a new Django app
it throws the CSRF error upon trying to log in!!!

I have attempted several ways to bypass this error including adding
allowed hosts but I cant seem to get past this issue.

Can someone please provide me with the definitive way of stopping
CSRF error when simply trying to access the admin part of Django? I
mean there are no post functions that really apply to this feature
so I cant understand the CSRF token.

I cant get past this issue which means I can never access the admin
page!!

Please help.

Regards

James

-- 
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/e13c7765-831e-45c5-b091-c8fcfbed19c5n%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/CAFKhtoRactd%2Bhg-3_m8d5MOKSYb0gp9J9m%2BjNM7naykJ8r3Kww%40mail.gmail.com .


--
This message has been scanned for viruses and
dangerous content by *MailScanner* , and is
believed to be clean.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To 

Re: Django Admin

2023-03-13 Thread James Hunt
Hi there. I have yet to add a login/register page since I am only trying to 
access the admin page which is a part of the Django project setup. So in 
effect, there are no HTML pages setup and I cant access the Django admin 
page layout as this is an integral part of Django!!! This is the problem!! 

I'm not sure if anyone else who sets up a  Django project would need to 
create any HTML pages before they create a superuser login enabling them to 
access their admin section.

I cant resolve this issue!!

Cheers

J

On Monday, March 13, 2023 at 2:08:06 PM UTC Andrew Romany wrote:

> It's very simple you should add it in the login/register html page but 
> inside the  tag after &  to be specific after this 
> above line.
>
> On Mon, 13 Mar 2023, 11:15 a.m. James Hunt,  wrote:
>
>> I have yet to create a HTML page so I'm not sure that the inclusion of {% 
>> csrf_token %} is required. I mean it's just the admin page I am trying to 
>> access which is provided by Django and not a page created by me!!!
>>
>> I am very surprised there is no fix for this issue!!! I might need to 
>> abandon Django and move a different framework given that this issue is at 
>> the start of a project!!!
>>
>> Cheers
>>
>> Jay
>>
>> On Monday, March 13, 2023 at 3:06:42 AM UTC Mir Junaid wrote:
>>
>>> try including this line in your index.html or main HTML page 
>>> {% csrf_token %}
>>> if it still doesn't work do include it in every html page
>>>
>>> On Sat, 11 Mar 2023 at 23:33, James Hunt  wrote:
>>>
 Hi there. I am fairly new to Django but have had previous success with 
 creating an app and being able to access the Admin page.
 Recently, if I attempt to access the admin page of a new Django app it 
 throws the CSRF error upon trying to log in!!!

 I have attempted several ways to bypass this error including adding 
 allowed hosts but I cant seem to get past this issue.

 Can someone please provide me with the definitive way of stopping CSRF 
 error when simply trying to access the admin part of Django? I mean there 
 are no post functions that really apply to this feature so I cant 
 understand the CSRF token.

 I cant get past this issue which means I can never access the admin 
 page!!

 Please help.

 Regards

 James

 -- 

>>> 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/e13c7765-831e-45c5-b091-c8fcfbed19c5n%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/6f8d686c-3075-4aff-8227-c2f86e3cn%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/447340ca-8977-4f28-9b1f-e2358c205914n%40googlegroups.com.


Re: Django Admin

2023-03-13 Thread Andrew Romany
It's very simple you should add it in the login/register html page but
inside the  tag after &  to be specific after this
above line.

On Mon, 13 Mar 2023, 11:15 a.m. James Hunt,  wrote:

> I have yet to create a HTML page so I'm not sure that the inclusion of {%
> csrf_token %} is required. I mean it's just the admin page I am trying to
> access which is provided by Django and not a page created by me!!!
>
> I am very surprised there is no fix for this issue!!! I might need to
> abandon Django and move a different framework given that this issue is at
> the start of a project!!!
>
> Cheers
>
> Jay
>
> On Monday, March 13, 2023 at 3:06:42 AM UTC Mir Junaid wrote:
>
>> try including this line in your index.html or main HTML page
>> {% csrf_token %}
>> if it still doesn't work do include it in every html page
>>
>> On Sat, 11 Mar 2023 at 23:33, James Hunt  wrote:
>>
>>> Hi there. I am fairly new to Django but have had previous success with
>>> creating an app and being able to access the Admin page.
>>> Recently, if I attempt to access the admin page of a new Django app it
>>> throws the CSRF error upon trying to log in!!!
>>>
>>> I have attempted several ways to bypass this error including adding
>>> allowed hosts but I cant seem to get past this issue.
>>>
>>> Can someone please provide me with the definitive way of stopping CSRF
>>> error when simply trying to access the admin part of Django? I mean there
>>> are no post functions that really apply to this feature so I cant
>>> understand the CSRF token.
>>>
>>> I cant get past this issue which means I can never access the admin
>>> page!!
>>>
>>> Please help.
>>>
>>> Regards
>>>
>>> James
>>>
>>> --
>>>
>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/e13c7765-831e-45c5-b091-c8fcfbed19c5n%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/6f8d686c-3075-4aff-8227-c2f86e3cn%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/CAGEtskruq9C4tg0BXDObB%2B7RORbKs8WXJcPOtTCO5Yw48fa1xA%40mail.gmail.com.


Re: Django Admin

2023-03-13 Thread James Hunt
I have yet to create a HTML page so I'm not sure that the inclusion of {% 
csrf_token %} is required. I mean it's just the admin page I am trying to 
access which is provided by Django and not a page created by me!!!

I am very surprised there is no fix for this issue!!! I might need to 
abandon Django and move a different framework given that this issue is at 
the start of a project!!!

Cheers

Jay

On Monday, March 13, 2023 at 3:06:42 AM UTC Mir Junaid wrote:

> try including this line in your index.html or main HTML page 
> {% csrf_token %}
> if it still doesn't work do include it in every html page
>
> On Sat, 11 Mar 2023 at 23:33, James Hunt  wrote:
>
>> Hi there. I am fairly new to Django but have had previous success with 
>> creating an app and being able to access the Admin page.
>> Recently, if I attempt to access the admin page of a new Django app it 
>> throws the CSRF error upon trying to log in!!!
>>
>> I have attempted several ways to bypass this error including adding 
>> allowed hosts but I cant seem to get past this issue.
>>
>> Can someone please provide me with the definitive way of stopping CSRF 
>> error when simply trying to access the admin part of Django? I mean there 
>> are no post functions that really apply to this feature so I cant 
>> understand the CSRF token.
>>
>> I cant get past this issue which means I can never access the admin page!!
>>
>> Please help.
>>
>> Regards
>>
>> James
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/e13c7765-831e-45c5-b091-c8fcfbed19c5n%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/6f8d686c-3075-4aff-8227-c2f86e3cn%40googlegroups.com.


Re: Django Admin

2023-03-12 Thread Mir Junaid
try including this line in your index.html or main HTML page
{% csrf_token %}
if it still doesn't work do include it in every html page

On Sat, 11 Mar 2023 at 23:33, James Hunt  wrote:

> Hi there. I am fairly new to Django but have had previous success with
> creating an app and being able to access the Admin page.
> Recently, if I attempt to access the admin page of a new Django app it
> throws the CSRF error upon trying to log in!!!
>
> I have attempted several ways to bypass this error including adding
> allowed hosts but I cant seem to get past this issue.
>
> Can someone please provide me with the definitive way of stopping CSRF
> error when simply trying to access the admin part of Django? I mean there
> are no post functions that really apply to this feature so I cant
> understand the CSRF token.
>
> I cant get past this issue which means I can never access the admin page!!
>
> Please help.
>
> Regards
>
> James
>
> --
> 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/e13c7765-831e-45c5-b091-c8fcfbed19c5n%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/CAM%2BpT8ydCuKaQgPT6Uhao28Eyhx9R0XNhxEF-yVKEnCn0iGA3w%40mail.gmail.com.


Re: Django Admin

2023-03-12 Thread James Hunt
I did add this but no change!!! Just keep getting that CSRF token error 
when trying to access admin!! Which is strange as the CSRF token is 
predominantly for POST methods.

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []

CSRF_TRUSTED_ORIGIN = (
'https://8000-famouswelsh-djangosetup-7vkpsqt0kez.ws-eu90.gitpod.io/')
# Application definition
On Sunday, March 12, 2023 at 12:57:19 PM UTC Muhammad Juwaini Abdul Rahman 
wrote:

> Have you tried my suggestion?
>
> On Sun, 12 Mar 2023 at 20:32, James Hunt  wrote:
>
>> I have literally set this up today just to prove that it happens for 
>> every Django project setup!!!
>>
>> So this is my settings :
>>
>>
>>  """
>> Django settings for DjangoTest project.
>>
>> Generated by 'django-admin startproject' using Django 4.1.7.
>>
>> For more information on this file, see
>> https://docs.djangoproject.com/en/4.1/topics/settings/
>>
>> For the full list of settings and their values, see
>> https://docs.djangoproject.com/en/4.1/ref/settings/
>> """
>>
>> from pathlib import Path
>>
>> # Build paths inside the project like this: BASE_DIR / 'subdir'.
>> BASE_DIR = Path(__file__).resolve().parent.parent
>>
>>
>> # Quick-start development settings - unsuitable for production
>> # See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
>>
>> # SECURITY WARNING: keep the secret key used in production secret!
>> SECRET_KEY = 
>> 'django-insecure-zb-=l4$q!2t@wjwt!@cp#rz=16v0l)#uai#7h(u4n8eie@ddt%'
>>
>> # SECURITY WARNING: don't run with debug turned on in production!
>> DEBUG = True
>>
>> ALLOWED_HOSTS = []
>>
>>
>> # Application definition
>>
>> INSTALLED_APPS = [
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>> ]
>>
>> MIDDLEWARE = [
>> 'django.middleware.security.SecurityMiddleware',
>> 'django.contrib.sessions.middleware.SessionMiddleware',
>> 'django.middleware.common.CommonMiddleware',
>> 'django.middleware.csrf.CsrfViewMiddleware',
>> 'django.contrib.auth.middleware.AuthenticationMiddleware',
>> 'django.contrib.messages.middleware.MessageMiddleware',
>> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
>> ]
>>
>> ROOT_URLCONF = 'DjangoTest.urls'
>>
>> TEMPLATES = [
>> {
>> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
>> 'DIRS': [],
>> 'APP_DIRS': True,
>> 'OPTIONS': {
>> 'context_processors': [
>> 'django.template.context_processors.debug',
>> 'django.template.context_processors.request',
>> 'django.contrib.auth.context_processors.auth',
>> 'django.contrib.messages.context_processors.messages',
>> ],
>> },
>> },
>> ]
>>
>> WSGI_APPLICATION = 'DjangoTest.wsgi.application'
>>
>>
>> # Database
>> # https://docs.djangoproject.com/en/4.1/ref/settings/#databases
>>
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.sqlite3',
>> 'NAME': BASE_DIR / 'db.sqlite3',
>> }
>> }
>>
>>
>> # Password validation
>> # 
>> https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators
>>
>> AUTH_PASSWORD_VALIDATORS = [
>> {
>> 'NAME': 
>> 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'
>> ,
>> },
>> {
>> 'NAME': 
>> 'django.contrib.auth.password_validation.MinimumLengthValidator',
>> },
>> {
>> 'NAME': 
>> 'django.contrib.auth.password_validation.CommonPasswordValidator',
>> },
>> {
>> 'NAME': 
>> 'django.contrib.auth.password_validation.NumericPasswordValidator',
>> },
>> ]
>>
>>
>> # Internationalization
>> # https://docs.djangoproject.com/en/4.1/topics/i18n/
>>
>> LANGUAGE_CODE = 'en-us'
>>
>> TIME_ZONE = 'UTC'
>>
>> USE_I18N = True
>>
>> USE_TZ = True
>>
>>
>> # Static files (CSS, JavaScript, Images)
>> # https://docs.djangoproject.com/en/4.1/howto/static-files/
>>
>> STATIC_URL = 'static/'
>>
>> # Default primary key field type
>> # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
>>
>> DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
>>
>>
>> On Sunday, March 12, 2023 at 9:46:04 AM UTC Muhammad Juwaini Abdul Rahman 
>> wrote:
>>
>>> I think you need to add the following in settings.py:
>>>
>>> CSRF_TRUSTED_ORIGIN = ('')
>>>
>>>
>>>
>>> On Sun, 12 Mar 2023 at 02:04, James Hunt  wrote:
>>>
 Hi there. I am fairly new to Django but have had previous success with 
 creating an app and being able to access the Admin page.
 Recently, if I attempt to access the admin page of a new Django app it 
 throws the CSRF error upon trying to log in!!!

 I have attempted several ways to bypass this error including adding 
 allowed hosts but I cant seem to get past this issue.

 Can someone 

Re: Django Admin

2023-03-12 Thread Muhammad Juwaini Abdul Rahman
Have you tried my suggestion?

On Sun, 12 Mar 2023 at 20:32, James Hunt  wrote:

> I have literally set this up today just to prove that it happens for every
> Django project setup!!!
>
> So this is my settings :
>
>
>  """
> Django settings for DjangoTest project.
>
> Generated by 'django-admin startproject' using Django 4.1.7.
>
> For more information on this file, see
> https://docs.djangoproject.com/en/4.1/topics/settings/
>
> For the full list of settings and their values, see
> https://docs.djangoproject.com/en/4.1/ref/settings/
> """
>
> from pathlib import Path
>
> # Build paths inside the project like this: BASE_DIR / 'subdir'.
> BASE_DIR = Path(__file__).resolve().parent.parent
>
>
> # Quick-start development settings - unsuitable for production
> # See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
>
> # SECURITY WARNING: keep the secret key used in production secret!
> SECRET_KEY = 'django-insecure-zb-=l4$q!2t@wjwt
> !@cp#rz=16v0l)#uai#7h(u4n8eie@ddt%'
>
> # SECURITY WARNING: don't run with debug turned on in production!
> DEBUG = True
>
> ALLOWED_HOSTS = []
>
>
> # Application definition
>
> INSTALLED_APPS = [
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> ]
>
> MIDDLEWARE = [
> 'django.middleware.security.SecurityMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> ]
>
> ROOT_URLCONF = 'DjangoTest.urls'
>
> TEMPLATES = [
> {
> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
> 'DIRS': [],
> 'APP_DIRS': True,
> 'OPTIONS': {
> 'context_processors': [
> 'django.template.context_processors.debug',
> 'django.template.context_processors.request',
> 'django.contrib.auth.context_processors.auth',
> 'django.contrib.messages.context_processors.messages',
> ],
> },
> },
> ]
>
> WSGI_APPLICATION = 'DjangoTest.wsgi.application'
>
>
> # Database
> # https://docs.djangoproject.com/en/4.1/ref/settings/#databases
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
> 'NAME': BASE_DIR / 'db.sqlite3',
> }
> }
>
>
> # Password validation
> #
> https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators
>
> AUTH_PASSWORD_VALIDATORS = [
> {
> 'NAME':
> 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'
> ,
> },
> {
> 'NAME':
> 'django.contrib.auth.password_validation.MinimumLengthValidator',
> },
> {
> 'NAME':
> 'django.contrib.auth.password_validation.CommonPasswordValidator',
> },
> {
> 'NAME':
> 'django.contrib.auth.password_validation.NumericPasswordValidator',
> },
> ]
>
>
> # Internationalization
> # https://docs.djangoproject.com/en/4.1/topics/i18n/
>
> LANGUAGE_CODE = 'en-us'
>
> TIME_ZONE = 'UTC'
>
> USE_I18N = True
>
> USE_TZ = True
>
>
> # Static files (CSS, JavaScript, Images)
> # https://docs.djangoproject.com/en/4.1/howto/static-files/
>
> STATIC_URL = 'static/'
>
> # Default primary key field type
> # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
>
> DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
>
>
> On Sunday, March 12, 2023 at 9:46:04 AM UTC Muhammad Juwaini Abdul Rahman
> wrote:
>
>> I think you need to add the following in settings.py:
>>
>> CSRF_TRUSTED_ORIGIN = ('')
>>
>>
>>
>> On Sun, 12 Mar 2023 at 02:04, James Hunt  wrote:
>>
>>> Hi there. I am fairly new to Django but have had previous success with
>>> creating an app and being able to access the Admin page.
>>> Recently, if I attempt to access the admin page of a new Django app it
>>> throws the CSRF error upon trying to log in!!!
>>>
>>> I have attempted several ways to bypass this error including adding
>>> allowed hosts but I cant seem to get past this issue.
>>>
>>> Can someone please provide me with the definitive way of stopping CSRF
>>> error when simply trying to access the admin part of Django? I mean there
>>> are no post functions that really apply to this feature so I cant
>>> understand the CSRF token.
>>>
>>> I cant get past this issue which means I can never access the admin
>>> page!!
>>>
>>> Please help.
>>>
>>> Regards
>>>
>>> James
>>>
>> --
>>>
>> 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...@googlegroups.com.
>>> To view this discussion on the web 

Re: Django Admin

2023-03-12 Thread James Hunt
I have literally set this up today just to prove that it happens for every 
Django project setup!!!

So this is my settings :


 """
Django settings for DjangoTest project.

Generated by 'django-admin startproject' using Django 4.1.7.

For more information on this file, see
https://docs.djangoproject.com/en/4.1/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
"""

from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 
'django-insecure-zb-=l4$q!2t@wjwt!@cp#rz=16v0l)#uai#7h(u4n8eie@ddt%'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'DjangoTest.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'DjangoTest.wsgi.application'


# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}


# Password validation
# 
https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 
'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 
'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 
'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.1/howto/static-files/

STATIC_URL = 'static/'

# Default primary key field type
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'


On Sunday, March 12, 2023 at 9:46:04 AM UTC Muhammad Juwaini Abdul Rahman 
wrote:

> I think you need to add the following in settings.py:
>
> CSRF_TRUSTED_ORIGIN = ('')
>
>
>
> On Sun, 12 Mar 2023 at 02:04, James Hunt  wrote:
>
>> Hi there. I am fairly new to Django but have had previous success with 
>> creating an app and being able to access the Admin page.
>> Recently, if I attempt to access the admin page of a new Django app it 
>> throws the CSRF error upon trying to log in!!!
>>
>> I have attempted several ways to bypass this error including adding 
>> allowed hosts but I cant seem to get past this issue.
>>
>> Can someone please provide me with the definitive way of stopping CSRF 
>> error when simply trying to access the admin part of Django? I mean there 
>> are no post functions that really apply to this feature so I cant 
>> understand the CSRF token.
>>
>> I cant get past this issue which means I can never access the admin page!!
>>
>> Please help.
>>
>> Regards
>>
>> James
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/e13c7765-831e-45c5-b091-c8fcfbed19c5n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 

Re: Django Admin

2023-03-12 Thread Muhammad Juwaini Abdul Rahman
I think you need to add the following in settings.py:

CSRF_TRUSTED_ORIGIN = ('')



On Sun, 12 Mar 2023 at 02:04, James Hunt  wrote:

> Hi there. I am fairly new to Django but have had previous success with
> creating an app and being able to access the Admin page.
> Recently, if I attempt to access the admin page of a new Django app it
> throws the CSRF error upon trying to log in!!!
>
> I have attempted several ways to bypass this error including adding
> allowed hosts but I cant seem to get past this issue.
>
> Can someone please provide me with the definitive way of stopping CSRF
> error when simply trying to access the admin part of Django? I mean there
> are no post functions that really apply to this feature so I cant
> understand the CSRF token.
>
> I cant get past this issue which means I can never access the admin page!!
>
> Please help.
>
> Regards
>
> James
>
> --
> 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/e13c7765-831e-45c5-b091-c8fcfbed19c5n%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/CAFKhtoRactd%2Bhg-3_m8d5MOKSYb0gp9J9m%2BjNM7naykJ8r3Kww%40mail.gmail.com.


Re: Django Admin

2023-03-11 Thread Letlaka Tsotetsi
Please share your code so we can be able to assist you

On Sat, 11 Mar 2023 at 8:04 PM, James Hunt  wrote:

> Hi there. I am fairly new to Django but have had previous success with
> creating an app and being able to access the Admin page.
> Recently, if I attempt to access the admin page of a new Django app it
> throws the CSRF error upon trying to log in!!!
>
> I have attempted several ways to bypass this error including adding
> allowed hosts but I cant seem to get past this issue.
>
> Can someone please provide me with the definitive way of stopping CSRF
> error when simply trying to access the admin part of Django? I mean there
> are no post functions that really apply to this feature so I cant
> understand the CSRF token.
>
> I cant get past this issue which means I can never access the admin page!!
>
> Please help.
>
> Regards
>
> James
>
> --
> 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/e13c7765-831e-45c5-b091-c8fcfbed19c5n%40googlegroups.com
> 
> .
>
-- 
Letlaka Tsotetsi
071 038 1485
letlak...@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/CAMCgpdJpk3b0c-7G__2-CtyP77%2BcJTmotqZ63dhuTnCNqNxAhg%40mail.gmail.com.


Re: Django Admin

2023-03-11 Thread Victor Matthew
Show your cold pleased


On Sat, 11 Mar 2023, 7:04 pm James Hunt,  wrote:

> Hi there. I am fairly new to Django but have had previous success with
> creating an app and being able to access the Admin page.
> Recently, if I attempt to access the admin page of a new Django app it
> throws the CSRF error upon trying to log in!!!
>
> I have attempted several ways to bypass this error including adding
> allowed hosts but I cant seem to get past this issue.
>
> Can someone please provide me with the definitive way of stopping CSRF
> error when simply trying to access the admin part of Django? I mean there
> are no post functions that really apply to this feature so I cant
> understand the CSRF token.
>
> I cant get past this issue which means I can never access the admin page!!
>
> Please help.
>
> Regards
>
> James
>
> --
> 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/e13c7765-831e-45c5-b091-c8fcfbed19c5n%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/CAJSJbPbY%3DWz%2BU%3DMJWFgyezCVgKSqy_28hBtvdUAhLcS%2BaxaYUw%40mail.gmail.com.


Re: Django Admin

2023-03-11 Thread Obam Olohu
Hello there, you can send a meeting link, I’ll fix the issue for you 

Sent from my iPhone

> On 11 Mar 2023, at 12:31 PM, James Hunt  wrote:
> 
> Hi there. I am fairly new to Django but have had previous success with 
> creating an app and being able to access the Admin page.
> Recently, if I attempt to access the admin page of a new Django app it throws 
> the CSRF error upon trying to log in!!!
> 
> I have attempted several ways to bypass this error including adding allowed 
> hosts but I cant seem to get past this issue.
> 
> Can someone please provide me with the definitive way of stopping CSRF error 
> when simply trying to access the admin part of Django? I mean there are no 
> post functions that really apply to this feature so I cant understand the 
> CSRF token.
> 
> I cant get past this issue which means I can never access the admin page!!
> 
> Please help.
> 
> Regards
> 
> James
> -- 
> 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/e13c7765-831e-45c5-b091-c8fcfbed19c5n%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/94495E83-3D75-4905-96B8-12DEA527DFE0%40gmail.com.


Re: Django Admin

2023-03-11 Thread Balogun Awwal
Check out this link but are you using csrf token before accepting any input.  
https://stackoverflow.com/questions/3197321/csrf-error-in-django

Sent from awwal

> On 11 Mar 2023, at 7:04 PM, James Hunt  wrote:
> 
> Hi there. I am fairly new to Django but have had previous success with 
> creating an app and being able to access the Admin page.
> Recently, if I attempt to access the admin page of a new Django app it throws 
> the CSRF error upon trying to log in!!!
> 
> I have attempted several ways to bypass this error including adding allowed 
> hosts but I cant seem to get past this issue.
> 
> Can someone please provide me with the definitive way of stopping CSRF error 
> when simply trying to access the admin part of Django? I mean there are no 
> post functions that really apply to this feature so I cant understand the 
> CSRF token.
> 
> I cant get past this issue which means I can never access the admin page!!
> 
> Please help.
> 
> Regards
> 
> James
> -- 
> 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/e13c7765-831e-45c5-b091-c8fcfbed19c5n%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/25574CBA-771F-41FB-8EDD-7C17273C5CF8%40gmail.com.


Re: DJANGO ADMIN SPECIFICATION

2022-09-11 Thread chahat kaur
Yes

On Sun, Sep 11, 2022, 00:48 Dushime Mudahera Richard 
wrote:

> yeah  All u said can be done in short """CRUD
>
>
> *Best Regards *
> *Dushime Mudahera Richard*
> *Google Crowdsource Influencer*
> *GDSC Lead 2021-2022 Bugema University*
> *Visit :* https://www.facebook.com/BSA256
> *Visit me *: Community Learning MS
> 
> Web dev and  IT Manager @Bluebird Soccer Academy
> Kyangwali Refugee Settlement  Office
> richdus...@gmail.com | richarddush...@bluebirdsocceracademy.org
> *Website *: www.bluebirdsocceracademy.org
> Sports | Mentorship | Leadership | Girl Child Empowerment
>
>
> On Sat, Sep 10, 2022 at 7:21 PM nana kwame  wrote:
>
>> Please I would like to ask if Django admin can be used to update and
>> delete and create webpages also. And also if it can be used to update
>> information on the user side from the admin panel. Thank You
>>
>> --
>> 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/3fe4e1e6-a313-460b-aef2-77b4d76da9d5n%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/CAJCm56JprYrbt9Um6HRVX%3DDVYpyjTyqBNEqTFu%3DP%3DPX3DSChYQ%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/CAN-96%3DK4Bt2Ui0iYvUVit3vp3e%3Dp-AC4JYSSdTe6BCzuHo%3DGgw%40mail.gmail.com.


Re: DJANGO ADMIN SPECIFICATION

2022-09-10 Thread Dushime Mudahera Richard
yeah  All u said can be done in short """CRUD


*Best Regards *
*Dushime Mudahera Richard*
*Google Crowdsource Influencer*
*GDSC Lead 2021-2022 Bugema University*
*Visit :* https://www.facebook.com/BSA256
*Visit me *: Community Learning MS

Web dev and  IT Manager @Bluebird Soccer Academy
Kyangwali Refugee Settlement  Office
richdus...@gmail.com | richarddush...@bluebirdsocceracademy.org
*Website *: www.bluebirdsocceracademy.org
Sports | Mentorship | Leadership | Girl Child Empowerment


On Sat, Sep 10, 2022 at 7:21 PM nana kwame  wrote:

> Please I would like to ask if Django admin can be used to update and
> delete and create webpages also. And also if it can be used to update
> information on the user side from the admin panel. Thank You
>
> --
> 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/3fe4e1e6-a313-460b-aef2-77b4d76da9d5n%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/CAJCm56JprYrbt9Um6HRVX%3DDVYpyjTyqBNEqTFu%3DP%3DPX3DSChYQ%40mail.gmail.com.


Re: DJANGO ADMIN SPECIFICATION

2022-09-10 Thread 'Kasper Laudrup' via Django users

On 10/09/2022 03.24, nana kwame wrote:
Please I would like to ask if Django admin can be used to update and 
delete and create webpages also.


If you write the appropriate models and views then yes, it can.

And also if it can be used to update 
information on the user side from the admin panel. Thank You




Yes.

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/a64c3d13-bd64-6c3a-07de-a50c16d3f51c%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: django-admin startproject --template error

2022-08-08 Thread 'Kasper Laudrup' via Django users

On 08/08/2022 10.46, xu brandy wrote:


WechatIMG75.png
An error was reported using the GITLab repository to specify template 
creation projects




And you expect everyone to be able to guess which Gitlab repository 
you're talking about? You even made an effort trying to hide it.


But whatever repository you're fetching the zip file from doesn't 
contain a valid zip file as the error message clearly states.


Only you know why that might be with the information you've shared so far.

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/1d1b090d-d394-5d61-1c41-393a109c9e39%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: django-admin-honeypot

2022-05-16 Thread Jeremy Lainé
A number of translation methods were deprecated in Django 3.0 (including 
ugettext_lazy) and remove in Django 4.0:

https://docs.djangoproject.com/en/dev/releases/3.0/#deprecated-features-3-0
https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-4-0

The bottom line is that django-admin-honeypot needs to be updated to work 
with recent Django versions, see:

https://github.com/dmpayton/django-admin-honeypot/issues/87

Cheers,
Jeremy
On Tuesday, May 10, 2022 at 7:48:38 AM UTC+2 chsuresh...@gmail.com wrote:

> Hi ,
> While i am including the django-admin-honeypot , i am getting this error , 
> i followed the procedure in the documentation but not working
>
> [image: image.png]
>

-- 
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/f4006ce1-17b2-40b6-8ab0-e80ef9500057n%40googlegroups.com.


Re: django-admin-autocomplete-filter

2022-02-09 Thread Kenedi Novriansyah
https://oldgamesdownload.com/file/53792-2/

On Wed, Feb 9, 2022 at 9:15 PM Kenedi Novriansyah <
kenedinovrians...@gmail.com> wrote:

> Battle Realms + Winter of the Wolf - GOG Games | Download Free GOG PC
> Games (gog-games.com)
> 
>
> On Wed, Feb 9, 2022 at 9:08 PM Kenedi Novriansyah <
> kenedinovrians...@gmail.com> wrote:
>
>> https://www45.zippyshare.com/v/07OKwKG1/file.html
>>
>> On Wed, Feb 9, 2022 at 9:06 PM DUSHYANT SINGH 
>> wrote:
>>
>>> Need updates from MERN
>>>
>>> On Wed, 9 Feb 2022, 19:21 Dilja E G,  wrote:
>>>
 How to add django-admin-autocomplete-filter ? in my django filtter?

 --
 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/CAJeNHmyrYUNiJN7VJWH0baWxh-dd9dTYd1f_PmfQnm6S9_ch2A%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/CABqedVNQ-QqxVRU4g8YYaQH0i52hmVA7muDPixrw1kXqHu3%2BuA%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/CADA6z%3DSfVo8jeRMVjCtQAk2udm5H8oFrouEyuv5OBE5mdfZxKA%40mail.gmail.com.


Re: django-admin-autocomplete-filter

2022-02-09 Thread Kenedi Novriansyah
Battle Realms + Winter of the Wolf - GOG Games | Download Free GOG PC Games
(gog-games.com)


On Wed, Feb 9, 2022 at 9:08 PM Kenedi Novriansyah <
kenedinovrians...@gmail.com> wrote:

> https://www45.zippyshare.com/v/07OKwKG1/file.html
>
> On Wed, Feb 9, 2022 at 9:06 PM DUSHYANT SINGH 
> wrote:
>
>> Need updates from MERN
>>
>> On Wed, 9 Feb 2022, 19:21 Dilja E G,  wrote:
>>
>>> How to add django-admin-autocomplete-filter ? in my django filtter?
>>>
>>> --
>>> 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/CAJeNHmyrYUNiJN7VJWH0baWxh-dd9dTYd1f_PmfQnm6S9_ch2A%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/CABqedVNQ-QqxVRU4g8YYaQH0i52hmVA7muDPixrw1kXqHu3%2BuA%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/CADA6z%3DS2PqK4qHi3arA3yq_NWuHqK2QnzKr3Y_yKb-btQtcUKw%40mail.gmail.com.


Re: django-admin-autocomplete-filter

2022-02-09 Thread Kenedi Novriansyah
https://www45.zippyshare.com/v/07OKwKG1/file.html

On Wed, Feb 9, 2022 at 9:06 PM DUSHYANT SINGH 
wrote:

> Need updates from MERN
>
> On Wed, 9 Feb 2022, 19:21 Dilja E G,  wrote:
>
>> How to add django-admin-autocomplete-filter ? in my django filtter?
>>
>> --
>> 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/CAJeNHmyrYUNiJN7VJWH0baWxh-dd9dTYd1f_PmfQnm6S9_ch2A%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/CABqedVNQ-QqxVRU4g8YYaQH0i52hmVA7muDPixrw1kXqHu3%2BuA%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/CADA6z%3DTs4ehA1MXSR6nGg6XmE7DrvL6MBDu5ATTQF1fH7j-YyA%40mail.gmail.com.


Re: django-admin-autocomplete-filter

2022-02-09 Thread DUSHYANT SINGH
Need updates from MERN

On Wed, 9 Feb 2022, 19:21 Dilja E G,  wrote:

> How to add django-admin-autocomplete-filter ? in my django filtter?
>
> --
> 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/CAJeNHmyrYUNiJN7VJWH0baWxh-dd9dTYd1f_PmfQnm6S9_ch2A%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/CABqedVNQ-QqxVRU4g8YYaQH0i52hmVA7muDPixrw1kXqHu3%2BuA%40mail.gmail.com.


Re: Django Admin Login

2021-11-09 Thread Aashish Kumar
Just make the path blank of admin.site.url in main urls.py file

On Tue, 9 Nov 2021 at 11:38 PM, webmbackslash 
wrote:

> Habdle it in urls.py file.
> But are you sure you want all your site viewed in admin mode?
>
> Il mar 9 nov 2021, 15:21 Abhi Sharma  ha scritto:
>
>> Hello,
>> We have a Django admin URL like https://abc.com/admin/, it's working
>> fine however we want to proxy with a domain for admin url like
>> https://abc.com/
>>
>> We want to remove */admin* from the URL.
>>
>>
>> Regards,
>> Abhishek
>>
> --
>> 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/39bd9eb7-5002-4cc1-afd0-02eaa216da10n%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/CANPmrzPGzuScdg_yLEr-Z3QcZW7gKJoRQx_ehvNp9fC47UuBYg%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/CACTAcrwQfc8a6Oyt_%3DbKUyh22%3DqPGPOSdjys2tHtgD%3D4T0EbFw%40mail.gmail.com.


Re: Django Admin Login

2021-11-09 Thread webmbackslash
Habdle it in urls.py file.
But are you sure you want all your site viewed in admin mode?

Il mar 9 nov 2021, 15:21 Abhi Sharma  ha scritto:

> Hello,
> We have a Django admin URL like https://abc.com/admin/, it's working fine
> however we want to proxy with a domain for admin url like https://abc.com/
>
> We want to remove */admin* from the URL.
>
>
> Regards,
> Abhishek
>
> --
> 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/39bd9eb7-5002-4cc1-afd0-02eaa216da10n%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/CANPmrzPGzuScdg_yLEr-Z3QcZW7gKJoRQx_ehvNp9fC47UuBYg%40mail.gmail.com.


Re: Django admin redirects behind nginx proxy subpath

2021-10-30 Thread Karthik Karthik
yaa
On Saturday, 23 October 2021 at 04:44:10 UTC-7 268088...@gmail.com wrote:

> I don't know but I'm interested in that
>
> 在2021年10月20日星期三 UTC+8 上午3:37:04 写道:
>
>>
>> I am running a small django app with django admin.
>> In fact, I only use django admin to edit a few models.
>>
>> It works fine in local and behind a simple proxy reverse, but now I have 
>> this kind a rewrite that changes the path: (it's a nginx ingress rewrite 
>> rule for Kubernetes)
>>
>> path: /diagnosis-admin(/|$)(.*) => $2
>>
>> Wich means, urls such as mydomain.com/diagnosis-admin redirect to 
>> localhost/ (mind the path change.
>>
>> When I try to access the admin at mydomain.com/diagnosis-admin/admin, 
>> django tries to redirect to mydomain.com/admin/, which leads nowhere 
>> because it falls on the proxy:
>>
>>
>>1. Request URL: 
>>   https://mydomain.com/diagnosis-admin/admin
>>   2. Request Method: 
>>   GET
>>   3. Status Code: 
>>   301 
>>   4. Remote Address: 
>>   138.21.17.33:3128
>>   5. Referrer Policy: 
>>   strict-origin-when-cross-origin
>>   1. Response Headers
>>   1. content-length: 
>>   0
>>   2. content-type: 
>>   text/html; charset=utf-8
>>   3. date: 
>>   Tue, 19 Oct 2021 15:11:42 GMT
>>   4. location: 
>>   /admin/
>>   5. script_name: 
>>   /diagnosis-admin
>>   6. strict-transport-security: 
>>   max-age=15724800; includeSubDomains
>>   7. x-content-type-options: 
>>   nosniff
>>
>>
>> I had this problems with other applicative frameworks but could solve it 
>> since they can interpret the FORWARDED_HOST, FORWARDED_PORT and 
>> FORWARDED_PATH headers provided by the proxy.
>>
>> Searching the internets gave me tons of solutions for reverse proxy with 
>> simple rewrite rules with no path alterations, but here I am stuck 
>>
>> I have no idea how to solve this withing django. Any help will be much 
>> appreciated
>>
>>
>> Additionnal information:
>> I run django with "python manage.py runserver 0.0.0.0:8000" on a docker 
>> container (running through GKE)
>>
>> Everything is pretty standard, I ran the basic django project scafolding, 
>> setup the database, auto migrated the models and that's about it. I can 
>> provide additionnal files if needed
>>
>>
>>
>>

-- 
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/6dd77ed7-8645-4306-ab0a-01279eb3cb96n%40googlegroups.com.


Re: Django admin redirects behind nginx proxy subpath

2021-10-23 Thread 银色配色
I don't know but I'm interested in that

在2021年10月20日星期三 UTC+8 上午3:37:04 写道:

>
> I am running a small django app with django admin.
> In fact, I only use django admin to edit a few models.
>
> It works fine in local and behind a simple proxy reverse, but now I have 
> this kind a rewrite that changes the path: (it's a nginx ingress rewrite 
> rule for Kubernetes)
>
> path: /diagnosis-admin(/|$)(.*) => $2
>
> Wich means, urls such as mydomain.com/diagnosis-admin redirect to 
> localhost/ (mind the path change.
>
> When I try to access the admin at mydomain.com/diagnosis-admin/admin, 
> django tries to redirect to mydomain.com/admin/, which leads nowhere 
> because it falls on the proxy:
>
>
>1. Request URL: 
>   https://mydomain.com/diagnosis-admin/admin
>   2. Request Method: 
>   GET
>   3. Status Code: 
>   301 
>   4. Remote Address: 
>   138.21.17.33:3128
>   5. Referrer Policy: 
>   strict-origin-when-cross-origin
>   1. Response Headers
>   1. content-length: 
>   0
>   2. content-type: 
>   text/html; charset=utf-8
>   3. date: 
>   Tue, 19 Oct 2021 15:11:42 GMT
>   4. location: 
>   /admin/
>   5. script_name: 
>   /diagnosis-admin
>   6. strict-transport-security: 
>   max-age=15724800; includeSubDomains
>   7. x-content-type-options: 
>   nosniff
>
>
> I had this problems with other applicative frameworks but could solve it 
> since they can interpret the FORWARDED_HOST, FORWARDED_PORT and 
> FORWARDED_PATH headers provided by the proxy.
>
> Searching the internets gave me tons of solutions for reverse proxy with 
> simple rewrite rules with no path alterations, but here I am stuck 
>
> I have no idea how to solve this withing django. Any help will be much 
> appreciated
>
>
> Additionnal information:
> I run django with "python manage.py runserver 0.0.0.0:8000" on a docker 
> container (running through GKE)
>
> Everything is pretty standard, I ran the basic django project scafolding, 
> setup the database, auto migrated the models and that's about it. I can 
> provide additionnal files if needed
>
>
>
>

-- 
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/e76405e1-c4ec-44da-be3f-cd30cdeb98c2n%40googlegroups.com.


Re: django admin

2021-10-10 Thread David Nugent
Just a general note but *collectstatic* should not be required for Django
development in localdev.

Django will locate static files using STATICFILES_FINDERS when serving
static is enabled (which normally is the case for localdev). It uses the
same algorithm to do so as *collectstatic*.

If you're getting 404s for static files, then there can be a number of
causes, apart from the usual PEBCAK:

   - STATICFILES_FINDERS does not include all of the required finders
   (filesystem, app_directories) If not set, these are the default anyway.
   - One or more directories is missing from STATICFILES_DIRS.

In the case of admin assets, these should always render except in the first
case, so after checking on these settings check the traceback in the
console to help triage the cause.

Regards, David

-- 
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/CAE5VhgXqtk9oZZCxivdC7Bobc74uX4y-sMTpjcQRVhBm%2B5599Q%40mail.gmail.com.


RE: django admin

2021-10-10 Thread Mike Dewhirst
Try manage.py collectstatic--(Unsigned mail from my phone)
 Original message From: Baraka Nzavi  
Date: 11/10/21  07:32  (GMT+10:00) To: Django users 
 Subject: django admin hello guys...what leads 
to the admin interface misbehaving in that the styling does not show



-- 
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/c6a6bc37-1f3a-45d5-9b21-509295dfd220n%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/616368e2.1c69fb81.b6c16.8d20SMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: django admin

2021-10-10 Thread Kasper Laudrup

On 10/10/2021 21.31, Baraka Nzavi wrote:
hello guys...what leads to the admin interface misbehaving in that the 
styling does not show




Most likely the stylesheets (.css files) are not available to the 
browser for some reason.


Impossible to know what the reason for that might be unless you provide 
some details.


Learn how to ask a question that someone has a chance to answer if you 
want to get some help.


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/3cb1e85e-35f1-148a-9232-1179afe21df5%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: django-admin doesn't display choices and it's not possible to select one

2021-09-22 Thread bnmng
Fantastic!  But now I wonder why it's not working on some of your browsers

On Wednesday, September 22, 2021 at 4:18:14 AM UTC-4 nine...@gmail.com 
wrote:

> Hi,
>
> Eureka!!! 
> Benjamin, you are right. I changed my browser and it worked.
>
> Thank for you advice.
>
> Best wishes,
> Maria
>
> On Tuesday, September 21, 2021 at 9:41:18 AM UTC+2 Mariangeles Mendoza 
> wrote:
>
>> Thank you very much!!!
>>
>> I will try other browsers. I have used Firefox and Brave.
>> No, I am not using other custom widget.
>>
>> Thanks again,
>> Maria 
>>
>> On Monday, September 20, 2021 at 1:59:25 PM UTC+2 bnmng wrote:
>>
>>> Hi.  I don't see anything in your code samples that would cause this.  
>>>  One line in admin.py caused the server to stop because of the extra 
>>> parenthesis, and the default for status should be 'r' instead of  
>>> 'refereed', but those don't cause the problem you're describing.  Maybe a 
>>> browser issue?  Maybe there's something with a custom widget that isn't the 
>>> samples?
>>>
>>> On Monday, September 13, 2021 at 9:13:48 AM UTC-4 nine...@gmail.com 
>>> wrote:
>>>
 Hi,
 I'm very new in Django. I'm making a cv, but I don't get select a 
 choice through the django-admin web. I've searched solutions in the 
 community but I cant't solve it.

 My code is:

 *Models.py*
 
 class Article(models.Model):
 
 year = models.PositiveIntegerField(
 validators=[
 MinValueValidator(1900), 
 MaxValueValidator(datetime.now().year)], null=True, 
 blank=True)

 title = models.CharField(max_length=200)
 author = models.ManyToManyField(Author)
 journal = models.ForeignKey(Journal, models.CASCADE)
 summary = models.TextField(max_length=1000, null=True, blank=True, 
help_text="Brief description of the 
 article")

 PUB_TYPE = (
 ('r', 'refereed'),
 ('t', 'technical report'),
 ('p', 'proceeding'),
 ('b', 'book'),
 ('c', 'book chapter'),
 )

 status = models.CharField(max_length=1, choices=PUB_TYPE, 
 default='refereed', 
help_text='publication type')
 
 class Meta:
 ordering = ['year']
 
 def get_absolute_url(self):
 return reverse('article-detail', args=[str(self.id)])

 def __str__(self):
 return self.title
 

 *admin.py*
 """
 @admin.register(Article)
 class ArticleAdmin(admin.ModelAdmin):
 list_display = ('title', 'journal', 'year', 'status')
 list_filter = (("year", "journal")
 ordering = ('-year',)
 search_fields= ('author',)
 filter_horizontal = ('author',)
 raw_id_fields = ('journal',)
 """
 When I click in the status button (attached image), the  choices aren't 
 displayed and i can't seletc one.
 I would be very grateful for any idea.

 Thanks in advance,
 Maria

>>>

-- 
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/ae3983dd-1912-42f0-b68d-f996a495e67en%40googlegroups.com.


Re: django-admin doesn't display choices and it's not possible to select one

2021-09-22 Thread Mariangeles Mendoza
Hi,

Eureka!!! 
Benjamin, you are right. I changed my browser and it worked.

Thank for you advice.

Best wishes,
Maria

On Tuesday, September 21, 2021 at 9:41:18 AM UTC+2 Mariangeles Mendoza 
wrote:

> Thank you very much!!!
>
> I will try other browsers. I have used Firefox and Brave.
> No, I am not using other custom widget.
>
> Thanks again,
> Maria 
>
> On Monday, September 20, 2021 at 1:59:25 PM UTC+2 bnmng wrote:
>
>> Hi.  I don't see anything in your code samples that would cause this.  
>>  One line in admin.py caused the server to stop because of the extra 
>> parenthesis, and the default for status should be 'r' instead of  
>> 'refereed', but those don't cause the problem you're describing.  Maybe a 
>> browser issue?  Maybe there's something with a custom widget that isn't the 
>> samples?
>>
>> On Monday, September 13, 2021 at 9:13:48 AM UTC-4 nine...@gmail.com 
>> wrote:
>>
>>> Hi,
>>> I'm very new in Django. I'm making a cv, but I don't get select a choice 
>>> through the django-admin web. I've searched solutions in the community but 
>>> I cant't solve it.
>>>
>>> My code is:
>>>
>>> *Models.py*
>>> 
>>> class Article(models.Model):
>>> 
>>> year = models.PositiveIntegerField(
>>> validators=[
>>> MinValueValidator(1900), 
>>> MaxValueValidator(datetime.now().year)], null=True, 
>>> blank=True)
>>>
>>> title = models.CharField(max_length=200)
>>> author = models.ManyToManyField(Author)
>>> journal = models.ForeignKey(Journal, models.CASCADE)
>>> summary = models.TextField(max_length=1000, null=True, blank=True, 
>>>help_text="Brief description of the 
>>> article")
>>>
>>> PUB_TYPE = (
>>> ('r', 'refereed'),
>>> ('t', 'technical report'),
>>> ('p', 'proceeding'),
>>> ('b', 'book'),
>>> ('c', 'book chapter'),
>>> )
>>>
>>> status = models.CharField(max_length=1, choices=PUB_TYPE, 
>>> default='refereed', 
>>>help_text='publication type')
>>> 
>>> class Meta:
>>> ordering = ['year']
>>> 
>>> def get_absolute_url(self):
>>> return reverse('article-detail', args=[str(self.id)])
>>>
>>> def __str__(self):
>>> return self.title
>>> 
>>>
>>> *admin.py*
>>> """
>>> @admin.register(Article)
>>> class ArticleAdmin(admin.ModelAdmin):
>>> list_display = ('title', 'journal', 'year', 'status')
>>> list_filter = (("year", "journal")
>>> ordering = ('-year',)
>>> search_fields= ('author',)
>>> filter_horizontal = ('author',)
>>> raw_id_fields = ('journal',)
>>> """
>>> When I click in the status button (attached image), the  choices aren't 
>>> displayed and i can't seletc one.
>>> I would be very grateful for any idea.
>>>
>>> Thanks in advance,
>>> Maria
>>>
>>

-- 
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/61e348de-660e-4cdd-bf39-ef14d839198bn%40googlegroups.com.


Re: django-admin doesn't display choices and it's not possible to select one

2021-09-21 Thread Mariangeles Mendoza
Thank you very much!!!

I will try other browsers. I have used Firefox and Brave.
No, I am not using other custom widget.

Thanks again,
Maria 

On Monday, September 20, 2021 at 1:59:25 PM UTC+2 bnmng wrote:

> Hi.  I don't see anything in your code samples that would cause this.  
>  One line in admin.py caused the server to stop because of the extra 
> parenthesis, and the default for status should be 'r' instead of  
> 'refereed', but those don't cause the problem you're describing.  Maybe a 
> browser issue?  Maybe there's something with a custom widget that isn't the 
> samples?
>
> On Monday, September 13, 2021 at 9:13:48 AM UTC-4 nine...@gmail.com wrote:
>
>> Hi,
>> I'm very new in Django. I'm making a cv, but I don't get select a choice 
>> through the django-admin web. I've searched solutions in the community but 
>> I cant't solve it.
>>
>> My code is:
>>
>> *Models.py*
>> 
>> class Article(models.Model):
>> 
>> year = models.PositiveIntegerField(
>> validators=[
>> MinValueValidator(1900), 
>> MaxValueValidator(datetime.now().year)], null=True, 
>> blank=True)
>>
>> title = models.CharField(max_length=200)
>> author = models.ManyToManyField(Author)
>> journal = models.ForeignKey(Journal, models.CASCADE)
>> summary = models.TextField(max_length=1000, null=True, blank=True, 
>>help_text="Brief description of the 
>> article")
>>
>> PUB_TYPE = (
>> ('r', 'refereed'),
>> ('t', 'technical report'),
>> ('p', 'proceeding'),
>> ('b', 'book'),
>> ('c', 'book chapter'),
>> )
>>
>> status = models.CharField(max_length=1, choices=PUB_TYPE, 
>> default='refereed', 
>>help_text='publication type')
>> 
>> class Meta:
>> ordering = ['year']
>> 
>> def get_absolute_url(self):
>> return reverse('article-detail', args=[str(self.id)])
>>
>> def __str__(self):
>> return self.title
>> 
>>
>> *admin.py*
>> """
>> @admin.register(Article)
>> class ArticleAdmin(admin.ModelAdmin):
>> list_display = ('title', 'journal', 'year', 'status')
>> list_filter = (("year", "journal")
>> ordering = ('-year',)
>> search_fields= ('author',)
>> filter_horizontal = ('author',)
>> raw_id_fields = ('journal',)
>> """
>> When I click in the status button (attached image), the  choices aren't 
>> displayed and i can't seletc one.
>> I would be very grateful for any idea.
>>
>> Thanks in advance,
>> Maria
>>
>

-- 
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/08bb4225-200e-4c1f-bfca-09c2b05fa9c5n%40googlegroups.com.


Re: django-admin doesn't display choices and it's not possible to select one

2021-09-20 Thread bnmng
Hi.  I don't see anything in your code samples that would cause this.   One 
line in admin.py caused the server to stop because of the extra 
parenthesis, and the default for status should be 'r' instead of  
'refereed', but those don't cause the problem you're describing.  Maybe a 
browser issue?  Maybe there's something with a custom widget that isn't the 
samples?

On Monday, September 13, 2021 at 9:13:48 AM UTC-4 nine...@gmail.com wrote:

> Hi,
> I'm very new in Django. I'm making a cv, but I don't get select a choice 
> through the django-admin web. I've searched solutions in the community but 
> I cant't solve it.
>
> My code is:
>
> *Models.py*
> 
> class Article(models.Model):
> 
> year = models.PositiveIntegerField(
> validators=[
> MinValueValidator(1900), 
> MaxValueValidator(datetime.now().year)], null=True, 
> blank=True)
>
> title = models.CharField(max_length=200)
> author = models.ManyToManyField(Author)
> journal = models.ForeignKey(Journal, models.CASCADE)
> summary = models.TextField(max_length=1000, null=True, blank=True, 
>help_text="Brief description of the 
> article")
>
> PUB_TYPE = (
> ('r', 'refereed'),
> ('t', 'technical report'),
> ('p', 'proceeding'),
> ('b', 'book'),
> ('c', 'book chapter'),
> )
>
> status = models.CharField(max_length=1, choices=PUB_TYPE, 
> default='refereed', 
>help_text='publication type')
> 
> class Meta:
> ordering = ['year']
> 
> def get_absolute_url(self):
> return reverse('article-detail', args=[str(self.id)])
>
> def __str__(self):
> return self.title
> 
>
> *admin.py*
> """
> @admin.register(Article)
> class ArticleAdmin(admin.ModelAdmin):
> list_display = ('title', 'journal', 'year', 'status')
> list_filter = (("year", "journal")
> ordering = ('-year',)
> search_fields= ('author',)
> filter_horizontal = ('author',)
> raw_id_fields = ('journal',)
> """
> When I click in the status button (attached image), the  choices aren't 
> displayed and i can't seletc one.
> I would be very grateful for any idea.
>
> Thanks in advance,
> Maria
>

-- 
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/3cc17c27-7c78-4f60-8a59-894711f182a1n%40googlegroups.com.


Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Mike Dewhirst

On 27/08/2021 2:09 am, Nigel Copley wrote:
although I think you'd have to override the breadcrumb block in each 
of the public facing admin templates, it doesn't look to be easily 
done and making a home setting it's probably overkill


Overkill, underkill - looks like no other solution at the moment. I'll 
look a bit deeper.




On Thursday, 26 August 2021 at 16:50:11 UTC+1 Nigel Copley wrote:

haven't tried it but you could potentially just override the
"/admin/base.html" template in your templates directory

On Tuesday, 24 August 2021 at 02:02:14 UTC+1 Mike Dewhirst wrote:

We are using 'Home' in a different, more public, part of the
site and
have to adjust that first item in the Admin breadcrumbs to
'Menu' or
'Main menu' in order to keep the UX masters happy. Some of the
Admin is
public facing.

Looking at the source, I would have to override an awful lot of
templates with ...

{% translate 'Home' %}

It looks impossible to do elegantly. I shudder at scripting a
global
search and replace.

Is this worth putting in the effort to make 'Home' a setting -
if that
is even possible.

If so, how do I get started on that?

Thanks

Mike

-- 
Signed email is an absolute defence against phishing. This

email has
been signed with my private key. If you import my public key
you can
automatically decrypt my signature and be sure it came from
me. Just
ask and I'll send it to you. Your email software can handle
signing.


--
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/76e4665b-cd9c-4bc2-b92f-0e6801b52c3fn%40googlegroups.com 
.



--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


--
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/1ec2797d-97c8-4d0c-fd75-0558d111ed08%40dewhirst.com.au.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Mike Dewhirst

On 27/08/2021 1:50 am, Cale Roco wrote:
haven't tried it but you could potentially just override the 
"/admin/base.html" template in your templates directory


That does change it but only at the top level admin:index page which 
shows all the apps


Doesn't seem to be inherited by child pages.



On Tuesday, 24 August 2021 at 02:02:14 UTC+1 Mike Dewhirst wrote:

We are using 'Home' in a different, more public, part of the site and
have to adjust that first item in the Admin breadcrumbs to 'Menu' or
'Main menu' in order to keep the UX masters happy. Some of the
Admin is
public facing.

Looking at the source, I would have to override an awful lot of
templates with ...

{% translate 'Home' %}

It looks impossible to do elegantly. I shudder at scripting a global
search and replace.

Is this worth putting in the effort to make 'Home' a setting - if
that
is even possible.

If so, how do I get started on that?

Thanks

Mike

-- 
Signed email is an absolute defence against phishing. This email has

been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


--
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/80a0be6b-8064-45bf-b053-974c56d1b89dn%40googlegroups.com 
.



--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


--
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/c1555c89-ce62-f317-008e-be6718abd796%40dewhirst.com.au.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Nigel Copley
although I think you'd have to override the breadcrumb block in each of the 
public facing admin templates, it doesn't look to be easily done and making 
a home setting it's probably overkill

On Thursday, 26 August 2021 at 16:50:11 UTC+1 Nigel Copley wrote:

> haven't tried it but you could potentially just override the 
> "/admin/base.html" template in your templates directory
>
> On Tuesday, 24 August 2021 at 02:02:14 UTC+1 Mike Dewhirst wrote:
>
>> We are using 'Home' in a different, more public, part of the site and 
>> have to adjust that first item in the Admin breadcrumbs to 'Menu' or 
>> 'Main menu' in order to keep the UX masters happy. Some of the Admin is 
>> public facing.
>>
>> Looking at the source, I would have to override an awful lot of 
>> templates with ...
>>
>> {% translate 'Home' %}
>>
>> It looks impossible to do elegantly. I shudder at scripting a global 
>> search and replace.
>>
>> Is this worth putting in the effort to make 'Home' a setting - if that 
>> is even possible.
>>
>> If so, how do I get started on that?
>>
>> Thanks
>>
>> Mike
>>
>> -- 
>> Signed email is an absolute defence against phishing. This email has
>> been signed with my private key. If you import my public key you can
>> automatically decrypt my signature and be sure it came from me. Just
>> ask and I'll send it to you. Your email software can handle signing.
>>
>>
>>

-- 
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/76e4665b-cd9c-4bc2-b92f-0e6801b52c3fn%40googlegroups.com.


Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Cale Roco
haven't tried it but you could potentially just override the 
"/admin/base.html" template in your templates directory

On Tuesday, 24 August 2021 at 02:02:14 UTC+1 Mike Dewhirst wrote:

> We are using 'Home' in a different, more public, part of the site and 
> have to adjust that first item in the Admin breadcrumbs to 'Menu' or 
> 'Main menu' in order to keep the UX masters happy. Some of the Admin is 
> public facing.
>
> Looking at the source, I would have to override an awful lot of 
> templates with ...
>
> {% translate 'Home' %}
>
> It looks impossible to do elegantly. I shudder at scripting a global 
> search and replace.
>
> Is this worth putting in the effort to make 'Home' a setting - if that 
> is even possible.
>
> If so, how do I get started on that?
>
> Thanks
>
> Mike
>
> -- 
> Signed email is an absolute defence against phishing. This email has
> been signed with my private key. If you import my public key you can
> automatically decrypt my signature and be sure it came from me. Just
> ask and I'll send it to you. Your email software can handle signing.
>
>
>

-- 
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/80a0be6b-8064-45bf-b053-974c56d1b89dn%40googlegroups.com.


Re: Django admin filters + select2 + loading many options asynchronously

2021-08-05 Thread Derek
Alternatively, there is 
: https://pypi.org/project/django-admin-autocomplete-filter/ 

(My own issue with that one s that does not necessarily match any custom 
styling, but that is probably not a problem for most.)

On Friday, 6 August 2021 at 07:53:35 UTC+2 Derek wrote:

> You mean like https://pypi.org/project/django-autocomplete-light/ ?
>
> On Wednesday, 4 August 2021 at 20:45:16 UTC+2 Federico Capoano wrote:
>
>> Hi everyone,
>>
>> when adding adming filters by foreign key in the admin, sometimes the 
>> possible values are too many to load.
>>
>> So I am thinking, why not load values asynchronously and show these with 
>> select2?
>> Probably only a certain number of values should be fetched and then while 
>> scrolling more values should be loaded.
>>
>> I am wondering, is there any solution for this already?
>>
>> Thanks in advance
>> 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/04001c01-ae6c-410d-a054-8b4a0c5e6c93n%40googlegroups.com.


Re: Django admin filters + select2 + loading many options asynchronously

2021-08-05 Thread Derek
You mean like https://pypi.org/project/django-autocomplete-light/ ?

On Wednesday, 4 August 2021 at 20:45:16 UTC+2 Federico Capoano wrote:

> Hi everyone,
>
> when adding adming filters by foreign key in the admin, sometimes the 
> possible values are too many to load.
>
> So I am thinking, why not load values asynchronously and show these with 
> select2?
> Probably only a certain number of values should be fetched and then while 
> scrolling more values should be loaded.
>
> I am wondering, is there any solution for this already?
>
> Thanks in advance
> 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/3b5ee45a-85ab-424e-beea-8d66cf5116b3n%40googlegroups.com.


Re: Django Admin: object history not working

2021-06-23 Thread Christian Ledermann
See
https://stackoverflow.com/questions/987669/tying-in-to-django-admins-model-history
for a better explanation and alternatives

On Tue, 22 Jun 2021 at 18:59, Ryan Kite  wrote:

>
> Thanks for the clarification, I didn't realize it only applied to changes
> administered directly from the Django Admin.
> Was interested in learning about an objects' change history, but in this
> case, the changes were not performed from the Django Admin.
>
>
> On Tuesday, June 22, 2021 at 5:50:10 AM UTC-7 christian...@gmail.com
> wrote:
>
>> I am not sure what you are asking about.
>> The history works out of the box, but only when you manipulate entries
>> via the django admin.
>> When you change the model instance through your own views, you have to
>> explicitly create the log entry.
>>
>> On Tue, 22 Jun 2021 at 00:48, Ryan Kite  wrote:
>>
>>> Hello,
>>>
>>> The issue is when clicking the "History" button on an object from the
>>> Django admin site, it opens to the template but says "*This object
>>> doesn't have a change history. It probably wasn't added via this admin
>>> site."*
>>>
>>> From reading the docs it appears that: *history_view*() already exists
>>> (which is what I want)
>>>
>>> /// from the doc page:
>>> ModelAdmin.history_view(*request*, *object_id*, *extra_context=None*)
>>> [source]
>>> 
>>> ¶
>>> 
>>>
>>>  Django view for the page that shows the modification history for a
>>> given model instance.
>>>
>>> ///
>>>
>>> We can see the change history when doing:
>>>
>>>  python manage.shell
>>>
>>> import django.contrib.admin.models import LogEntry
>>> from django.contrib.contenttypes.models import ContentType
>>> from app import MyModel
>>>
>>>  results =
>>> LogEntry.objects.filter(content_type=ContentType.objects.get_for_model(MyModel
>>> ))
>>>
>>> print(vars(results[1]))
>>>
>>> .. shows the change details
>>>
>>> Please tell me what I'm missing or need to add.
>>>
>>>
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/f59bfb29-c5be-459b-a984-ff1492150f92n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Best Regards,
>>
>> Christian Ledermann
>>
>> Dublin, IE
>> Mobile : +353 (0) 899748838
>>
>> https://www.linkedin.com/in/christianledermann
>> https://github.com/cleder/
>>
>>
>> <*)))>{
>>
>> If you save the living environment, the biodiversity that we have left,
>> you will also automatically save the physical environment, too. But If
>> you only save the physical environment, you will ultimately lose both.
>>
>> 1) Don’t drive species to extinction
>>
>> 2) Don’t destroy a habitat that species rely on.
>>
>> 3) Don’t change the climate in ways that will result in the above.
>>
>> }<(((*>
>>
> --
> 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/cc8975e1-8b77-4316-92df-909eecaad98cn%40googlegroups.com
> 
> .
>


-- 
Best Regards,

Christian Ledermann

Dublin, IE
Mobile : +353 (0) 899748838

https://www.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
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/CABCjzWq3UhJwtyz%2BQbAaAJg-ganZCr-JL%2BSXLdxrCYOruQ3pqQ%40mail.gmail.com.


Re: Django Admin: object history not working

2021-06-22 Thread Ryan Kite

Thanks for the clarification, I didn't realize it only applied to changes 
administered directly from the Django Admin. 
Was interested in learning about an objects' change history, but in this 
case, the changes were not performed from the Django Admin. 


On Tuesday, June 22, 2021 at 5:50:10 AM UTC-7 christian...@gmail.com wrote:

> I am not sure what you are asking about.
> The history works out of the box, but only when you manipulate entries via 
> the django admin.
> When you change the model instance through your own views, you have to 
> explicitly create the log entry.
>
> On Tue, 22 Jun 2021 at 00:48, Ryan Kite  wrote:
>
>> Hello,
>>
>> The issue is when clicking the "History" button on an object from the 
>> Django admin site, it opens to the template but says "*This object 
>> doesn't have a change history. It probably wasn't added via this admin 
>> site."*
>>
>> From reading the docs it appears that: *history_view*() already exists 
>> (which is what I want)
>>
>> /// from the doc page: 
>> ModelAdmin.history_view(*request*, *object_id*, *extra_context=None*)
>> [source] 
>> 
>> ¶ 
>> 
>>
>>  Django view for the page that shows the modification history for a 
>> given model instance.
>>
>> ///
>>
>> We can see the change history when doing:
>>
>>  python manage.shell
>>
>> import django.contrib.admin.models import LogEntry
>> from django.contrib.contenttypes.models import ContentType
>> from app import MyModel 
>>
>>  results = 
>> LogEntry.objects.filter(content_type=ContentType.objects.get_for_model(MyModel
>>  
>> ))
>>
>> print(vars(results[1])) 
>>
>> .. shows the change details
>>
>> Please tell me what I'm missing or need to add. 
>>
>>
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/f59bfb29-c5be-459b-a984-ff1492150f92n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Best Regards,
>
> Christian Ledermann
>
> Dublin, IE
> Mobile : +353 (0) 899748838
>
> https://www.linkedin.com/in/christianledermann
> https://github.com/cleder/
>
>
> <*)))>{
>
> If you save the living environment, the biodiversity that we have left,
> you will also automatically save the physical environment, too. But If
> you only save the physical environment, you will ultimately lose both.
>
> 1) Don’t drive species to extinction
>
> 2) Don’t destroy a habitat that species rely on.
>
> 3) Don’t change the climate in ways that will result in the above.
>
> }<(((*>
>

-- 
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/cc8975e1-8b77-4316-92df-909eecaad98cn%40googlegroups.com.


Re: Django Admin: object history not working

2021-06-22 Thread Christian Ledermann
I am not sure what you are asking about.
The history works out of the box, but only when you manipulate entries via
the django admin.
When you change the model instance through your own views, you have to
explicitly create the log entry.

On Tue, 22 Jun 2021 at 00:48, Ryan Kite  wrote:

> Hello,
>
> The issue is when clicking the "History" button on an object from the
> Django admin site, it opens to the template but says "*This object
> doesn't have a change history. It probably wasn't added via this admin
> site."*
>
> From reading the docs it appears that: *history_view*() already exists
> (which is what I want)
>
> /// from the doc page:
> ModelAdmin.history_view(*request*, *object_id*, *extra_context=None*)
> [source]
> 
> ¶
> 
>
>  Django view for the page that shows the modification history for a
> given model instance.
>
> ///
>
> We can see the change history when doing:
>
>  python manage.shell
>
> import django.contrib.admin.models import LogEntry
> from django.contrib.contenttypes.models import ContentType
> from app import MyModel
>
>  results =
> LogEntry.objects.filter(content_type=ContentType.objects.get_for_model(MyModel
> ))
>
> print(vars(results[1]))
>
> .. shows the change details
>
> Please tell me what I'm missing or need to add.
>
>
>
> --
> 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/f59bfb29-c5be-459b-a984-ff1492150f92n%40googlegroups.com
> 
> .
>


-- 
Best Regards,

Christian Ledermann

Dublin, IE
Mobile : +353 (0) 899748838

https://www.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
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/CABCjzWrJZfk%2BTw0yDovv%3DKYu1SiLe3wrk%3DkS-YG%3DeUnpMhbByQ%40mail.gmail.com.


Re: django-admin makemessages --no-obsolete doesn't seem to be working

2021-04-06 Thread AlainWebDev
https://www.gnu.org/software/gettext/manual/gettext.html
‘--no-obsolete’

Remove obsolete #~ messages.

Le lundi 19 mars 2018 à 14:43:06 UTC+1, Ramiro Morales a écrit :

> On Sun, Mar 18, 2018 at 11:18 AM, Kishor Pawar  wrote:
>
>> First of all, I am expecting `--no-obsolete` would comment out `msgid` 
>> and `msgstr` if `gettext` is deleted, right?
>>
>
> AFAIK there is no  (and there wasn't ever) a `--no-obsolete` modifier to 
> the makemessages command.
>
> Did you read about that somewhere? Can you post a link?
>
> -- 
> Ramiro Morales
> @ramiromorales
>

-- 
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/ac29783b-24c3-4aee-b2e1-f985f4e199c2n%40googlegroups.com.


Re: Django Admin, how to update select user field with my own queryset after adding new foreign object

2021-01-08 Thread Mike Dewhirst

On 9/01/2021 5:58 am, Héctor Alonso Lozada Echezuría wrote:

Best regards

I have a very simple warehouse model that is related to the 
contrib.auth.User model through the asigned_seller field

which should only allow those users with the seller role

class  PersonalWarehouse(ProductsMixin,  WarehouseBase):
 channel=  models.ForeignKey(
 SalesChannel,
 verbose_name=_('Sales channel'),
 on_delete=models.PROTECT
 )
 asigned_seller=  models.ForeignKey(
 User,
 verbose_name=_('Asigned seller'),
 blank=True,
 null=True,
 on_delete=models.SET_NULL
 )
 is_close=  models.BooleanField(
 verbose_name=_('Is it close?'),
 default=False
 )
 created_at=  models.DateTimeField(
 verbose_name=_('Created at'),
 auto_now_add=True
 )
 deadline=  models.DateField(
 verbose_name=_('Deadline'),
 default=date(now.year+  now.month//  12,  now.month%  12  +  1,  1)  - 
 timedelta(1)
 )

 class  Meta:
 verbose_name=  _('Personal warehouse')
 verbose_name_plural=  _('Personal warehouses')
 permissions=  [
 ('close_personal_warehouses',  'Can close warehouse')
 ]

 def  __str__(self):
 return  self.name

 def  __repr__(self):
 return  f'http://self.name>}>'

In my admin I have.

@admin.register(PersonalWarehouse)
class  PersonalWarehouseAdmin(admin.ModelAdmin):
 change_form_template=  'change_form.html'

 exclude=  ('is_close',  )
 list_display=  ('name',  'asigned_seller',  'is_close',  'deadline',  )
 list_filter=  ('asigned_seller',  'is_close',  'created_at',  'deadline',  
)
 ordering=  ['-deadline']
 search_fields=  ['name']
 actions=  [close_personal_warehouses]

 def  formfield_for_foreignkey(self,  db_field,  request,  **kwargs):
 if  db_field.name==  'asigned_seller':
 kwargs['queryset']  =  User.objects.filter(groups__name='Seller')
 field=  super().formfield_for_foreignkey(
 db_field,  request,  **kwargs)
 field.label_from_instance=  self.get_user_label
 return  field

 return  super().formfield_for_foreignkey(db_field,  request,  **kwargs)

 def  get_user_label(self,  user):
 return  user.get_full_name()

the problem exists when I add a new user from the warehouse template, 
it is added without any role and therefore appears listed


Perhaps you need to filter the queryset itself. Here is an example of 
one of mine ...


def get_queryset(self, request):
""" Limit the chemicals visible to just those owned by the company
of which the user is an employee.
"""
company = get_user_company(request.user)
qs = super().get_queryset(request)
return qs.filter(chemical__company=company)

 

If you have a custom user, you can put the user into the correct 
group(s) on creation using


https://docs.djangoproject.com/en/2.2/ref/signals/#django.db.models.signals.post_save

Otherwise, in formfield_for_foreignkey() you can insert a line which 
tests request.user for membership of "Seller" and if not, put the user 
into that group before checking if db_field.name == 'assigned_seller'





imagen.png
imagen.png

imagen.png

after refreshing the page I get only those users with the seller role

imagen.png

So how can I refresh the select widget so that only the users with the 
seller role appear after the ajax event?


--
Héctor Alonso Lozada Echezuría

 
	Libre de virus. www.avast.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/CADTS2YysaQxyz643ZneQ-D2gbe0B%2BKDHJe7VkGLW_MiPiq3awQ%40mail.gmail.com 
.



--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


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

Re: Django admin page redirecting to some another page

2020-09-25 Thread coolguy
Please check if you have defined/changed LOGIN_URL settings in settings.py

On Friday, September 25, 2020 at 2:51:23 PM UTC-4 deepra...@gmail.com wrote:

> I go for super user login then it redirects to template which i made not 
> going to django admin login and django admin page,
>
> please suggest me any solution
>

-- 
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/b568aa88-d340-44ac-a749-41c27af56e84n%40googlegroups.com.


Re: Django admin page redirecting to some another page

2020-09-25 Thread coolguy
Did you change LOGIN_REDIRECT_URL settings in settings.py?

On Friday, September 25, 2020 at 2:51:23 PM UTC-4 deepra...@gmail.com wrote:

> I go for super user login then it redirects to template which i made not 
> going to django admin login and django admin page,
>
> please suggest me any solution
>

-- 
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/7bb1e7f7-be10-4ffa-b400-c1d1ad321fb9n%40googlegroups.com.


Re: Django Admin

2020-09-09 Thread RANGA BHARATH JINKA
Hi,

   You can configure it.
   https://django-jazzmin.readthedocs.io/configuration/

  All the best

On Thu, Sep 10, 2020 at 2:38 AM Emmanuel Oppong Ntiamoah <
ladamo...@gmail.com> wrote:

> Thanks a lot. Please i have installed it and it’s working but i have these
> challenges:
> 1. How to remove the Jazzmin version from the footer
> 2. I have a tabular inline which allows me to add more fields but it has
> removed the add more button.
>
>
> On 9 Sep 2020, at 4:24 PM, RANGA BHARATH JINKA 
> wrote:
>
> 
> Hi,
>
> Use this.
> https://pypi.org/project/django-jazzmin/
>
> All the best
>
> On Wed, Sep 9, 2020 at 9:47 PM lada...@gmail.com 
> wrote:
>
>> Hello friends, I am developing a system and i want to use bootstrap admin
>> dashboard but i dont want to loose the features of django admin please how
>> do i go about it
>>
>> --
>> 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/26defa3e-1dc4-4f04-a958-3ace3b8ddbc6n%40googlegroups.com
>> 
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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/CAK5m314-scHwrLmU-401Vb3eQhD30J-aHt62FFbkTqkaTp8WyQ%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/E0AED428-0AE4-4B1E-8BA0-5304C440A6AB%40gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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/CAK5m314dfD_gNxdFRd3pe3LQYgjTrT%3Dj-i2X_wJ7YORF5FwXag%40mail.gmail.com.


Re: Django Admin

2020-09-09 Thread Emmanuel Oppong Ntiamoah
Thanks a lot. Please i have installed it and it’s working but i have these 
challenges:
1. How to remove the Jazzmin version from the footer 
2. I have a tabular inline which allows me to add more fields but it has 
removed the add more button. 

> 
> On 9 Sep 2020, at 4:24 PM, RANGA BHARATH JINKA  
> wrote:
> 
> 
> Hi,
> 
> Use this.
> https://pypi.org/project/django-jazzmin/
> 
> All the best
> 
>> On Wed, Sep 9, 2020 at 9:47 PM lada...@gmail.com  wrote:
>> Hello friends, I am developing a system and i want to use bootstrap admin 
>> dashboard but i dont want to loose the features of django admin please how 
>> do i go about it
>> -- 
>> 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/26defa3e-1dc4-4f04-a958-3ace3b8ddbc6n%40googlegroups.com.
> 
> 
> -- 
> Thanks and Regards
> 
> J. Ranga Bharath
> cell: 9110334114
> -- 
> 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/CAK5m314-scHwrLmU-401Vb3eQhD30J-aHt62FFbkTqkaTp8WyQ%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/E0AED428-0AE4-4B1E-8BA0-5304C440A6AB%40gmail.com.


Re: Django Admin

2020-09-09 Thread yashwanth balanagu
awsome

On Wed, Sep 9, 2020 at 9:54 PM RANGA BHARATH JINKA 
wrote:

> Hi,
>
> Use this.
> https://pypi.org/project/django-jazzmin/
>
> All the best
>
> On Wed, Sep 9, 2020 at 9:47 PM lada...@gmail.com 
> wrote:
>
>> Hello friends, I am developing a system and i want to use bootstrap admin
>> dashboard but i dont want to loose the features of django admin please how
>> do i go about it
>>
>> --
>> 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/26defa3e-1dc4-4f04-a958-3ace3b8ddbc6n%40googlegroups.com
>> 
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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/CAK5m314-scHwrLmU-401Vb3eQhD30J-aHt62FFbkTqkaTp8WyQ%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/CAM6tB-B1U%3DGNn6u%2BVVdC-uxUSobh4Hb%3Djho%2BrZRtacr_T-GdQg%40mail.gmail.com.


Re: Django Admin

2020-09-09 Thread RANGA BHARATH JINKA
Hi,

Use this.
https://pypi.org/project/django-jazzmin/

All the best

On Wed, Sep 9, 2020 at 9:47 PM lada...@gmail.com 
wrote:

> Hello friends, I am developing a system and i want to use bootstrap admin
> dashboard but i dont want to loose the features of django admin please how
> do i go about it
>
> --
> 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/26defa3e-1dc4-4f04-a958-3ace3b8ddbc6n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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/CAK5m314-scHwrLmU-401Vb3eQhD30J-aHt62FFbkTqkaTp8WyQ%40mail.gmail.com.


Re: django - admin error

2020-08-21 Thread RANGA BHARATH JINKA
Try using virtual environment

On Fri, 21 Aug 2020, 6:59 pm sapna Choudhary,  wrote:

> run command line django-admin ,you will see list of commands to run
>
> On Thu, Aug 20, 2020 at 6:47 PM company <2071...@hansung.ac.kr> wrote:
>
>> Hi, Django users.
>>  I started to learn programming this year and joined to make new homepage
>> for my programming club. So I want to know how to solve this problem.
>> According to Django documentation part.1(tutorial), I installed Django
>> and confirmed my Django version through  "python -m django --version"which
>> is version 3.2. Then, I made directory named "renewal" in command line and
>> moved to my directory "renewal" and lastly
>> I ordered "django-admin startproject mysite" in commad line to make
>> "mysite directory" in renewal directory. But, prompt said 'django -admin'
>> is not an internal or external command, executable program or a batch file
>> even if I tried to solve this problem, I do not know what should i do to
>> solve this one. I will look forward your answer :)
>>
>>
>>
>> --
>> 이 메일은 지정된 수취인만을 위해 작성되었으며, 중요한 정보나 저작권을 포함하고 있을 수 있습니다. 어떠한 권한 없이, 본 문서에
>> 포함된 정보의 전부 또는 일부를 무단으로 제3자에게 공개, 배포, 복사 또는 사용하는 것을 엄격히 금지합니다. 만약, 본 메일이 잘못
>> 전송된 경우, 발신인 또는 당사에 알려주시고, 본 메일을 즉시 삭제하여 주시기 바랍니다.
>> This E-mail may contain confidential information and/or copyright
>> material. This email is intended for the use of the addressee only. If you
>> receive this email by mistake, please either delete it without reproducing,
>> distributing or retaining copies thereof or notify the sender immediately.
>> 
>>
>> --
>> 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/261dd143-f482-4e6d-9ea9-c00fc4b7644an%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/CAP6mExiCpaHYBfdxinUksNy%3DE9g2QYsH791wFcvz1rsJmh%2BkuA%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/CAK5m316ziuog%3DqMg6U0Acmrt_%3D0%3DGd%3DA_xdJMQovnXq%2BWWaqZQ%40mail.gmail.com.


Re: django - admin error

2020-08-21 Thread sapna Choudhary
run command line django-admin ,you will see list of commands to run

On Thu, Aug 20, 2020 at 6:47 PM company <2071...@hansung.ac.kr> wrote:

> Hi, Django users.
>  I started to learn programming this year and joined to make new homepage
> for my programming club. So I want to know how to solve this problem.
> According to Django documentation part.1(tutorial), I installed Django and
> confirmed my Django version through  "python -m django --version"which is
> version 3.2. Then, I made directory named "renewal" in command line and
> moved to my directory "renewal" and lastly
> I ordered "django-admin startproject mysite" in commad line to make
> "mysite directory" in renewal directory. But, prompt said 'django -admin'
> is not an internal or external command, executable program or a batch file
> even if I tried to solve this problem, I do not know what should i do to
> solve this one. I will look forward your answer :)
>
>
>
> --
> 이 메일은 지정된 수취인만을 위해 작성되었으며, 중요한 정보나 저작권을 포함하고 있을 수 있습니다. 어떠한 권한 없이, 본 문서에
> 포함된 정보의 전부 또는 일부를 무단으로 제3자에게 공개, 배포, 복사 또는 사용하는 것을 엄격히 금지합니다. 만약, 본 메일이 잘못
> 전송된 경우, 발신인 또는 당사에 알려주시고, 본 메일을 즉시 삭제하여 주시기 바랍니다.
> This E-mail may contain confidential information and/or copyright
> material. This email is intended for the use of the addressee only. If you
> receive this email by mistake, please either delete it without reproducing,
> distributing or retaining copies thereof or notify the sender immediately.
> 
>
> --
> 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/261dd143-f482-4e6d-9ea9-c00fc4b7644an%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/CAP6mExiCpaHYBfdxinUksNy%3DE9g2QYsH791wFcvz1rsJmh%2BkuA%40mail.gmail.com.


Re: django - admin error

2020-08-20 Thread Ogunsanya Opeyemi
You are to call djando-admin as a module in python
by running "python -m django-admin startproject mysite"

On Thursday, August 20, 2020, company <2071...@hansung.ac.kr> wrote:

> Hi, Django users.
>  I started to learn programming this year and joined to make new homepage
> for my programming club. So I want to know how to solve this problem.
> According to Django documentation part.1(tutorial), I installed Django and
> confirmed my Django version through  "python -m django --version"which is
> version 3.2. Then, I made directory named "renewal" in command line and
> moved to my directory "renewal" and lastly
> I ordered "django-admin startproject mysite" in commad line to make
> "mysite directory" in renewal directory. But, prompt said 'django -admin'
> is not an internal or external command, executable program or a batch file
> even if I tried to solve this problem, I do not know what should i do to
> solve this one. I will look forward your answer :)
>
>
>
> --
> 이 메일은 지정된 수취인만을 위해 작성되었으며, 중요한 정보나 저작권을 포함하고 있을 수 있습니다. 어떠한 권한 없이, 본 문서에
> 포함된 정보의 전부 또는 일부를 무단으로 제3자에게 공개, 배포, 복사 또는 사용하는 것을 엄격히 금지합니다. 만약, 본 메일이 잘못
> 전송된 경우, 발신인 또는 당사에 알려주시고, 본 메일을 즉시 삭제하여 주시기 바랍니다.
> This E-mail may contain confidential information and/or copyright
> material. This email is intended for the use of the addressee only. If you
> receive this email by mistake, please either delete it without reproducing,
> distributing or retaining copies thereof or notify the sender immediately.
> 
>
> --
> 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/261dd143-f482-4e6d-9ea9-c00fc4b7644an%
> 40googlegroups.com
> 
> .
>


-- 
OGUNSANYA OPEYEMI

-- 
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/CABJxPrH81X%3DkPm%3DTo26u79SqQwoCVKFkKYkL30vqjZxC%2B7zs-g%40mail.gmail.com.


Re: Django Admin: how to link to another model from one model list view ?

2020-06-29 Thread Olivier
I've found [1] which seems to match what I was after
[1] 
https://avilpage.com/2017/11/django-tips-tricks-hyperlink-foreignkey-admin.html

I hope this could also help others ...

Le jeudi 25 juin 2020 10:07:15 UTC+2, Olivier a écrit :
>
> Hello,
>
> Let say your app deals with Book and Author models.
>
> Within Django Admin, you can display a list of currently stored Books.
> I
> How can you implement the following:
> 1. For each Book entry within Book Listing page (like 
> http://foobar.com/admin/myapp/book/), book's title and authors arr both 
> displayed,
> 2. When clicking over book's title, you go to book edit page (like 
> http://foobar.com/admin/myapp/book/7/change)
> 3. When clicking over any of book's authors,  you go to corresponding 
> author edit page (like http://foobar.com/admin/myapp/author/25/change)
>
> I did tried with list_display_links but it linked to Book edit page, not 
> Author edit page.
>
> I also tried with building custom URLs like  href="/admin/myapp/author/25/change">Author Name, but it exactly this 
> URL value
> instead of showing a link.
> (looking at page source code, it seems my browser received an escaped 
> value like "a href= ..." instead of expected " href= ...").
>
> Any hint ?
>
> 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/eb924d2c-ef67-4b81-a118-a1b1ecce6cceo%40googlegroups.com.


Re: Django Admin Custom View Query Generation

2020-04-27 Thread Derek
Hi

I have not worked with visualising script progress before; you probably 
need to use Celery on the backend - have a look at this blog post:
https://buildwithdjango.com/blog/post/celery-progress-bars/

Writing the actual ingestion scripts is very much standard work for any 
programmer - especially Python programmers! I do suggest that you break 
this down into two parts: 1. validate the inputs and write the problems 
into a log/file which you access from the front-end; 2. ingest the clean 
data only if there are no problems.

There are many example online dealing with adding "buttons" (aka clickable 
links) to Django and Django admin.  There are many places in Django you can 
add such features.


On Sunday, 26 April 2020 19:42:40 UTC+2, Ram wrote:
>
> Hello Derek,
>
> Thanks for providing good references for Django Admin Customization. I'm 
> looking for a way to customize the following requirements. I thought you 
> might have some idea of how to achieve this.
>
> 1. We extract data from XML files and upload the data into our Django 
> based web app but we do this offline using URL/script name.
> 2. So we need to add the data generation scripts into admin control so 
> that webmaster can 
> 2.1. run the scripts using actionable buttons on demand > see the progress 
> of the script in log output > this log output should be saved and viewed 
> from admin control only so that webmaster can check if there is any issue 
> while extracting the data
> 2.2. result of the data generated should be injected into the front end of 
> the web app as well as in admin control. It is almost a replica of the same 
> data between the front end and admin control
> 2.3. the same actionable buttons can be avoided to run on demand > add the 
> actions/scripts into Cron jobs > I'm not sure whether Cron jobs page can be 
> created and managed from admin control
>
> I appreciate it if you can suggest some examples to achieve the above.
>
> Best regards,
> ~Ram
>
>
>
> On Sat, Dec 14, 2019 at 9:37 AM Derek > 
> wrote:
>
>> The first post I came across that helped me before was:
>>
>> https://hakibenita.com/how-to-turn-django-admin-into-a-lightweight-dashboard
>> (tip: he has many useful admin-related posts and is worth following)
>>
>> This seems like a more recent version of the same:
>> https://findwork.dev/blog/adding-charts-to-django-admin/
>>
>> I have not used these, but of course third-party apps can save you time:
>> https://pypi.org/project/django-admin-charts/
>> and
>> https://pypi.org/project/django-admin-tools-stats/
>> (this one is based on other Django stats libraries that could be of help 
>> in reporting - look at the Dependencies section)
>>
>> For a different approach, you can generate your reports in Excel (many of 
>> my users seems to want that format):
>>
>>
>> https://djangotricks.blogspot.com/2019/02/how-to-export-data-to-xlsx-files.html
>>
>> and then embed charts in the file:
>>
>>
>> https://www.geeksforgeeks.org/python-plotting-charts-in-excel-sheet-using-openpyxl-module-set-1/
>>
>> https://www.geeksforgeeks.org/python-plotting-charts-in-excel-sheet-using-openpyxl-module-set-2/
>>
>> https://www.geeksforgeeks.org/python-plotting-charts-in-excel-sheet-using-openpyxl-module-set-3/
>>
>>
>> On Friday, 13 December 2019 21:05:43 UTC+2, Balaji wrote:
>>>
>>> Thank you very much Derek.
>>>
>>> You always provide nice help.
>>>
>>> Can we generate graphs  for reports in  Django Admi n.
>>>
>>>
>>>
>>>
>>> On Saturday, December 14, 2019, Derek  wrote:
>>>
 You can use built-in Django ORM methods to perform calculated 
 operations on existing models (you don't need a new model). See: 
 https://docs.djangoproject.com/en/3.0/topics/db/aggregation/

 For more complex operations, you can write "raw" SQL -see 
 https://docs.djangoproject.com/en/3.0/topics/db/sql/

 The results can be rendered as HTML or converted to PDF (see: 
 https://codeburst.io/django-render-html-to-pdf-41a2b9c41d16)

 The standard Django Admin list is NOT a suitable place to show these 
 outputs directly - I would (and I have before) hook these up to an custom 
 action that lets a user fill in report parameters in a form before 
 generating the HTML (for display) or PDF (for download).


 On Thursday, 12 December 2019 19:51:14 UTC+2, Balaji wrote:
>
> Hi
>
> Can anyone please tell me how can we generate Custome Model view for 
> different report where we use avg, min , max, sum, count , group by 
> clause.
>
> We have to generate this report in Django Admin Panel only.
>
> Can we generate respective Graphs also.
>
> Is there any library available.
>
>
>
>
> -- 
> 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 

Re: Django Admin Custom View Query Generation

2020-04-26 Thread Vaibhav Mishra
You can use built-in Django ORM methods to perform calculated operations on 
existing models

On Thursday, December 12, 2019 at 11:21:14 PM UTC+5:30, Balaji wrote:
>
> Hi
>
> Can anyone please tell me how can we generate Custome Model view for 
> different report where we use avg, min , max, sum, count , group by clause.
>
> We have to generate this report in Django Admin Panel only.
>
> Can we generate respective Graphs also.
>
> Is there any library available.
>
>
>
>
> -- 
> 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/16e4f6bc-48e3-4509-bc5c-90d97ed15673%40googlegroups.com.


Re: Django Admin Custom View Query Generation

2020-04-26 Thread Ram
Hello Derek,

Thanks for providing good references for Django Admin Customization. I'm
looking for a way to customize the following requirements. I thought you
might have some idea of how to achieve this.

1. We extract data from XML files and upload the data into our Django based
web app but we do this offline using URL/script name.
2. So we need to add the data generation scripts into admin control so that
webmaster can
2.1. run the scripts using actionable buttons on demand > see the progress
of the script in log output > this log output should be saved and viewed
from admin control only so that webmaster can check if there is any issue
while extracting the data
2.2. result of the data generated should be injected into the front end of
the web app as well as in admin control. It is almost a replica of the same
data between the front end and admin control
2.3. the same actionable buttons can be avoided to run on demand > add the
actions/scripts into Cron jobs > I'm not sure whether Cron jobs page can be
created and managed from admin control

I appreciate it if you can suggest some examples to achieve the above.

Best regards,
~Ram



On Sat, Dec 14, 2019 at 9:37 AM Derek  wrote:

> The first post I came across that helped me before was:
>
> https://hakibenita.com/how-to-turn-django-admin-into-a-lightweight-dashboard
> (tip: he has many useful admin-related posts and is worth following)
>
> This seems like a more recent version of the same:
> https://findwork.dev/blog/adding-charts-to-django-admin/
>
> I have not used these, but of course third-party apps can save you time:
> https://pypi.org/project/django-admin-charts/
> and
> https://pypi.org/project/django-admin-tools-stats/
> (this one is based on other Django stats libraries that could be of help
> in reporting - look at the Dependencies section)
>
> For a different approach, you can generate your reports in Excel (many of
> my users seems to want that format):
>
>
> https://djangotricks.blogspot.com/2019/02/how-to-export-data-to-xlsx-files.html
>
> and then embed charts in the file:
>
>
> https://www.geeksforgeeks.org/python-plotting-charts-in-excel-sheet-using-openpyxl-module-set-1/
>
> https://www.geeksforgeeks.org/python-plotting-charts-in-excel-sheet-using-openpyxl-module-set-2/
>
> https://www.geeksforgeeks.org/python-plotting-charts-in-excel-sheet-using-openpyxl-module-set-3/
>
>
> On Friday, 13 December 2019 21:05:43 UTC+2, Balaji wrote:
>>
>> Thank you very much Derek.
>>
>> You always provide nice help.
>>
>> Can we generate graphs  for reports in  Django Admi n.
>>
>>
>>
>>
>> On Saturday, December 14, 2019, Derek  wrote:
>>
>>> You can use built-in Django ORM methods to perform calculated operations
>>> on existing models (you don't need a new model). See:
>>> https://docs.djangoproject.com/en/3.0/topics/db/aggregation/
>>>
>>> For more complex operations, you can write "raw" SQL -see
>>> https://docs.djangoproject.com/en/3.0/topics/db/sql/
>>>
>>> The results can be rendered as HTML or converted to PDF (see:
>>> https://codeburst.io/django-render-html-to-pdf-41a2b9c41d16)
>>>
>>> The standard Django Admin list is NOT a suitable place to show these
>>> outputs directly - I would (and I have before) hook these up to an custom
>>> action that lets a user fill in report parameters in a form before
>>> generating the HTML (for display) or PDF (for download).
>>>
>>>
>>> On Thursday, 12 December 2019 19:51:14 UTC+2, Balaji wrote:

 Hi

 Can anyone please tell me how can we generate Custome Model view for
 different report where we use avg, min , max, sum, count , group by clause.

 We have to generate this report in Django Admin Panel only.

 Can we generate respective Graphs also.

 Is there any library available.




 --
 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/8e0b3bb0-07dc-4765-b0a3-82b6dcc95589%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> 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/e63cfa7c-fcde-40d3-81ab-564e5c611bc9%40googlegroups.com
> 

Re: Django Admin Custom View Query Generation

2019-12-14 Thread Derek
The first post I came across that helped me before was:
https://hakibenita.com/how-to-turn-django-admin-into-a-lightweight-dashboard
(tip: he has many useful admin-related posts and is worth following)

This seems like a more recent version of the same:
https://findwork.dev/blog/adding-charts-to-django-admin/

I have not used these, but of course third-party apps can save you time:
https://pypi.org/project/django-admin-charts/
and
https://pypi.org/project/django-admin-tools-stats/
(this one is based on other Django stats libraries that could be of help in 
reporting - look at the Dependencies section)

For a different approach, you can generate your reports in Excel (many of 
my users seems to want that format):

https://djangotricks.blogspot.com/2019/02/how-to-export-data-to-xlsx-files.html

and then embed charts in the file:

https://www.geeksforgeeks.org/python-plotting-charts-in-excel-sheet-using-openpyxl-module-set-1/
https://www.geeksforgeeks.org/python-plotting-charts-in-excel-sheet-using-openpyxl-module-set-2/
https://www.geeksforgeeks.org/python-plotting-charts-in-excel-sheet-using-openpyxl-module-set-3/


On Friday, 13 December 2019 21:05:43 UTC+2, Balaji wrote:
>
> Thank you very much Derek.
>
> You always provide nice help.
>
> Can we generate graphs  for reports in  Django Admi n.
>
>
>
>
> On Saturday, December 14, 2019, Derek > 
> wrote:
>
>> You can use built-in Django ORM methods to perform calculated operations 
>> on existing models (you don't need a new model). See: 
>> https://docs.djangoproject.com/en/3.0/topics/db/aggregation/
>>
>> For more complex operations, you can write "raw" SQL -see 
>> https://docs.djangoproject.com/en/3.0/topics/db/sql/
>>
>> The results can be rendered as HTML or converted to PDF (see: 
>> https://codeburst.io/django-render-html-to-pdf-41a2b9c41d16)
>>
>> The standard Django Admin list is NOT a suitable place to show these 
>> outputs directly - I would (and I have before) hook these up to an custom 
>> action that lets a user fill in report parameters in a form before 
>> generating the HTML (for display) or PDF (for download).
>>
>>
>> On Thursday, 12 December 2019 19:51:14 UTC+2, Balaji wrote:
>>>
>>> Hi
>>>
>>> Can anyone please tell me how can we generate Custome Model view for 
>>> different report where we use avg, min , max, sum, count , group by clause.
>>>
>>> We have to generate this report in Django Admin Panel only.
>>>
>>> Can we generate respective Graphs also.
>>>
>>> Is there any library available.
>>>
>>>
>>>
>>>
>>> -- 
>>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/8e0b3bb0-07dc-4765-b0a3-82b6dcc95589%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> 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/e63cfa7c-fcde-40d3-81ab-564e5c611bc9%40googlegroups.com.


Re: Django Admin Custom View Query Generation

2019-12-13 Thread Balaji Shetty
Thank you very much Derek.

You always provide nice help.

Can we generate graphs  for reports in  Django Admi n.




On Saturday, December 14, 2019, Derek  wrote:

> You can use built-in Django ORM methods to perform calculated operations
> on existing models (you don't need a new model). See: https://docs.
> djangoproject.com/en/3.0/topics/db/aggregation/
>
> For more complex operations, you can write "raw" SQL -see https://docs.
> djangoproject.com/en/3.0/topics/db/sql/
>
> The results can be rendered as HTML or converted to PDF (see:
> https://codeburst.io/django-render-html-to-pdf-41a2b9c41d16)
>
> The standard Django Admin list is NOT a suitable place to show these
> outputs directly - I would (and I have before) hook these up to an custom
> action that lets a user fill in report parameters in a form before
> generating the HTML (for display) or PDF (for download).
>
>
> On Thursday, 12 December 2019 19:51:14 UTC+2, Balaji wrote:
>>
>> Hi
>>
>> Can anyone please tell me how can we generate Custome Model view for
>> different report where we use avg, min , max, sum, count , group by clause.
>>
>> We have to generate this report in Django Admin Panel only.
>>
>> Can we generate respective Graphs also.
>>
>> Is there any library available.
>>
>>
>>
>>
>> --
>> 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/8e0b3bb0-07dc-4765-b0a3-82b6dcc95589%40googlegroups.com
> 
> .
>


-- 
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/CAECSbOtaWp3Y4LO1gXVU5oc0TGi5vGXO4G9gYV2K50j3k%3Dc1mA%40mail.gmail.com.


Re: Django Admin Custom View Query Generation

2019-12-13 Thread Derek
You can use built-in Django ORM methods to perform calculated operations on 
existing models (you don't need a new model). 
See: https://docs.djangoproject.com/en/3.0/topics/db/aggregation/

For more complex operations, you can write "raw" SQL 
-see https://docs.djangoproject.com/en/3.0/topics/db/sql/

The results can be rendered as HTML or converted to PDF 
(see: https://codeburst.io/django-render-html-to-pdf-41a2b9c41d16)

The standard Django Admin list is NOT a suitable place to show these 
outputs directly - I would (and I have before) hook these up to an custom 
action that lets a user fill in report parameters in a form before 
generating the HTML (for display) or PDF (for download).


On Thursday, 12 December 2019 19:51:14 UTC+2, Balaji wrote:
>
> Hi
>
> Can anyone please tell me how can we generate Custome Model view for 
> different report where we use avg, min , max, sum, count , group by clause.
>
> We have to generate this report in Django Admin Panel only.
>
> Can we generate respective Graphs also.
>
> Is there any library available.
>
>
>
>
> -- 
> 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/8e0b3bb0-07dc-4765-b0a3-82b6dcc95589%40googlegroups.com.


Re: Django Admin templates not being overwritten by app templates

2019-11-10 Thread Aldian Fazrihady
You need to reorder the app list in INSTALLED_APP setting, so
`django.contrib.admin` is located lower than your app`.

On Mon, Nov 11, 2019 at 3:49 AM Alexander Beach  wrote:

> I am trying to create registration forms using Django's built in auth
> forms.  However, when using the Django admin, the Django admin templates
> are always being used.
>
> My application structure is as follows:
>
> ├── bug
> │   ├── __init__.py
> │   ├── __pycache__
> │   ├── settings.py
> │   ├── urls.py
> │   └── wsgi.py
> ├── db.sqlite3
> ├── manage.py
> └── mysite
> ├── admin.py
> ├── apps.py
> ├── __init__.py
> ├── migrations
> │   └── __init__.py
> ├── models.py
> ├── registration
> ├── templates
> │   └── registration
> │   └── password_reset_form.html
> ├── tests.py
> └── views.py
>
>
>
> My urls.py is the following:
>
>
> from django.contrib import admin
> from django.conf.urls import include, url
> from django.urls import path
>
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> url(r'^accounts/', include('django.contrib.auth.urls'), name="auth"),
> ]
>
>
>
> The mysite/templates/registration/password_reset_form.html is not being
> rendered.  When I navigate to localhost:8000/accounts/password_reset, i can
> see that its using the Django Admin template. See attached screenshot.  I
> am expecting my custom template for the reset form to be rendered.
>
> I am using Django version 2.2.5 and python 3.7.3
>
> Is this a bug or the expected behavior? I don't want to remove the admin
> app.
>
>
>
>
> --
> 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/c718299d-53f6-4e56-8976-a2040f3449ac%40googlegroups.com
> 
> .
>


-- 
Regards,

Aldian Fazrihady
http://aldianfazrihady.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/CAN7EoAabPjVcLDgou_Ee_aK899E3KiVvxSGSkqA0hqXhDiU1BQ%40mail.gmail.com.


Re: Django Admin templates not being overwritten by app templates

2019-11-10 Thread Alexander Beach
This behavior seems counter intuitive, and contrary to what the 
documentation says

For example: my settings.py file is as follows:

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]


According to this documentation, APP_DIR should behave as follows:

https://docs.djangoproject.com/en/2.2/howto/overriding-templates/#overriding-from-an-app-s-template-directory

> With APP_DIRS 

 set 
to True, the template loader will look in the app’s templates directory and 
find the templates.

This isn't the behavior that is happening. djang_admin and mysite are 
technically separate apps, and have seperate template directories. 

On Sunday, November 10, 2019 at 3:49:32 PM UTC-5, Alexander Beach wrote:
>
> I am trying to create registration forms using Django's built in auth 
> forms.  However, when using the Django admin, the Django admin templates 
> are always being used.
>
> My application structure is as follows:
>
> ├── bug
> │   ├── __init__.py
> │   ├── __pycache__
> │   ├── settings.py
> │   ├── urls.py
> │   └── wsgi.py
> ├── db.sqlite3
> ├── manage.py
> └── mysite
> ├── admin.py
> ├── apps.py
> ├── __init__.py
> ├── migrations
> │   └── __init__.py
> ├── models.py
> ├── registration
> ├── templates
> │   └── registration
> │   └── password_reset_form.html
> ├── tests.py
> └── views.py
>
>
>
> My urls.py is the following:
>
>
> from django.contrib import admin
> from django.conf.urls import include, url
> from django.urls import path
>
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> url(r'^accounts/', include('django.contrib.auth.urls'), name="auth"),
> ]
>
>
>
> The mysite/templates/registration/password_reset_form.html is not being 
> rendered.  When I navigate to localhost:8000/accounts/password_reset, i can 
> see that its using the Django Admin template. See attached screenshot.  I 
> am expecting my custom template for the reset form to be rendered.
>
> I am using Django version 2.2.5 and python 3.7.3
>
> Is this a bug or the expected behavior? I don't want to remove the admin 
> app. 
>
>
>
>
>

-- 
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/0520c4c2-abbb-441c-bd81-1aeeb8c355b8%40googlegroups.com.


Re: Django Admin templates not being overwritten by app templates

2019-11-10 Thread Mike Dewhirst

On 11/11/2019 7:02 am, Alexander Beach wrote:
I am trying to create registration forms using Django's built in auth 
forms.  However, when using the Django admin, the Django admin 
templates are always being used.


My application structure is as follows:

|
├──bug
│├──__init__.py
│├──__pycache__
│├──settings.py
│├──urls.py
│└──wsgi.py
├──db.sqlite3
├──manage.py
└──mysite
├──admin.py
├──apps.py
├──__init__.py
├──migrations
│└──__init__.py
├──models.py
├──registration
├──templates
|

| mysite/templates/admin/password_reset_form.html

Not tested but that's the principle. Django will default to using the 
template from your site rather than its own. The admin is one of your 
apps so it will use any templates it finds (that urls.conf knows about) 
in your main templates directory.


Cheers

Mike

|

|
│└──registration
│└──password_reset_form.html
├──tests.py
└──views.py

|


My urls.py is the following:


|
fromdjango.contrib importadmin
fromdjango.conf.urls importinclude,url
fromdjango.urls importpath


urlpatterns =[
    path('admin/',admin.site.urls),
    url(r'^accounts/',include('django.contrib.auth.urls'),name="auth"),
]

|


The mysite/templates/registration/password_reset_form.html is not 
being rendered.  When I navigate to 
localhost:8000/accounts/password_reset, i can see that its using the 
Django Admin template. See attached screenshot.  I am expecting my 
custom template for the reset form to be rendered.


I am using Django version 2.2.5 and python 3.7.3

Is this a bug or the expected behavior? I don't want to remove the 
admin app.





--
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/c718299d-53f6-4e56-8976-a2040f3449ac%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/2e77a76e-e6a5-392c-acd9-4694e260a42e%40dewhirst.com.au.


Re: Django admin no recuerda mi superusuario

2019-10-13 Thread Gil Obradors
Hi Francisco!

What are you trying to do?  Step to step
What is the expected behavior?
What is the real behaviour?
Are you talking to save the password to the browser?



Missatge de DANIEL URBANO DE LA RUA  del dia dg.,
13 d’oct. 2019 a les 22:03:

> Cuando ejecutas un migrate se crean las tablas en la db que tengas en el
> setting
>
> On Sun, 13 Oct 2019, 22:00 Julio Cojom,  wrote:
>
>> Pensé en la BD pero cuando ejecuta manager.py eso debería de afectar la
>> base que tenga en settings. Sera que hay 2 proyectos y ejecutas sobre uno
>> pero necesitas los resultados en otro? Has revisado la tabla de usuarios en
>> la BD para ver si está creado el registro?
>>
>> El dom., 13 de octubre de 2019 1:54 p. m., DANIEL URBANO DE LA RUA <
>> dannybombas...@gmail.com> escribió:
>>
>>> Que base de datos tienes configurada rn el setting.py
>>>
>>> On Sun, 13 Oct 2019, 21:53 DANIEL URBANO DE LA RUA, <
>>> dannybombas...@gmail.com> wrote:
>>>
 No tienes nada que hacer en el setting

 On Sun, 13 Oct 2019, 21:23 Francisco Muller, <
 franciscojavierlevi...@gmail.com> wrote:

> When creating a super user in django with python3 manage.py
> createsuperuser
> and at another time I want to log in to the administrator of my
> project with my super user who does not let me connect with my username 
> and
> password.
> What should I change in the settings so that django can remember my
> superuser account every time I log in?
>
> --
> 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/ccf5f81b-74a4-4149-ab93-76164d056c39%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/CAO_yRT0h9s35OXyr-DUUHs3FsfzBt0dAo2Bn3Xt_wykEY82YBw%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/CAHRQUHmav__1bHK%2Bin-OKrfyUDNzuuybv7PpkpvZ%2Bd8xoQRU%3DQ%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/CAO_yRT1r%2BRw%3DRUG%2BTpYOm1jwNuKFRLDN%2BZyyZ-Y0omfQtB5ZMg%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-JoTRcarZqwwHnV0qch%3DHrTnwYnOni6MrPrX9wLxicJq9_4A%40mail.gmail.com.


Re: Django admin no recuerda mi superusuario

2019-10-13 Thread DANIEL URBANO DE LA RUA
Cuando ejecutas un migrate se crean las tablas en la db que tengas en el
setting

On Sun, 13 Oct 2019, 22:00 Julio Cojom,  wrote:

> Pensé en la BD pero cuando ejecuta manager.py eso debería de afectar la
> base que tenga en settings. Sera que hay 2 proyectos y ejecutas sobre uno
> pero necesitas los resultados en otro? Has revisado la tabla de usuarios en
> la BD para ver si está creado el registro?
>
> El dom., 13 de octubre de 2019 1:54 p. m., DANIEL URBANO DE LA RUA <
> dannybombas...@gmail.com> escribió:
>
>> Que base de datos tienes configurada rn el setting.py
>>
>> On Sun, 13 Oct 2019, 21:53 DANIEL URBANO DE LA RUA, <
>> dannybombas...@gmail.com> wrote:
>>
>>> No tienes nada que hacer en el setting
>>>
>>> On Sun, 13 Oct 2019, 21:23 Francisco Muller, <
>>> franciscojavierlevi...@gmail.com> wrote:
>>>
 When creating a super user in django with python3 manage.py
 createsuperuser
 and at another time I want to log in to the administrator of my project
 with my super user who does not let me connect with my username and
 password.
 What should I change in the settings so that django can remember my
 superuser account every time I log in?

 --
 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/ccf5f81b-74a4-4149-ab93-76164d056c39%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/CAO_yRT0h9s35OXyr-DUUHs3FsfzBt0dAo2Bn3Xt_wykEY82YBw%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/CAHRQUHmav__1bHK%2Bin-OKrfyUDNzuuybv7PpkpvZ%2Bd8xoQRU%3DQ%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/CAO_yRT1r%2BRw%3DRUG%2BTpYOm1jwNuKFRLDN%2BZyyZ-Y0omfQtB5ZMg%40mail.gmail.com.


Re: Django admin no recuerda mi superusuario

2019-10-13 Thread Julio Cojom
Pensé en la BD pero cuando ejecuta manager.py eso debería de afectar la
base que tenga en settings. Sera que hay 2 proyectos y ejecutas sobre uno
pero necesitas los resultados en otro? Has revisado la tabla de usuarios en
la BD para ver si está creado el registro?

El dom., 13 de octubre de 2019 1:54 p. m., DANIEL URBANO DE LA RUA <
dannybombas...@gmail.com> escribió:

> Que base de datos tienes configurada rn el setting.py
>
> On Sun, 13 Oct 2019, 21:53 DANIEL URBANO DE LA RUA, <
> dannybombas...@gmail.com> wrote:
>
>> No tienes nada que hacer en el setting
>>
>> On Sun, 13 Oct 2019, 21:23 Francisco Muller, <
>> franciscojavierlevi...@gmail.com> wrote:
>>
>>> When creating a super user in django with python3 manage.py
>>> createsuperuser
>>> and at another time I want to log in to the administrator of my project
>>> with my super user who does not let me connect with my username and
>>> password.
>>> What should I change in the settings so that django can remember my
>>> superuser account every time I log in?
>>>
>>> --
>>> 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/ccf5f81b-74a4-4149-ab93-76164d056c39%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/CAO_yRT0h9s35OXyr-DUUHs3FsfzBt0dAo2Bn3Xt_wykEY82YBw%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/CAHRQUHmav__1bHK%2Bin-OKrfyUDNzuuybv7PpkpvZ%2Bd8xoQRU%3DQ%40mail.gmail.com.


Re: Django admin no recuerda mi superusuario

2019-10-13 Thread DANIEL URBANO DE LA RUA
Que base de datos tienes configurada rn el setting.py

On Sun, 13 Oct 2019, 21:53 DANIEL URBANO DE LA RUA, <
dannybombas...@gmail.com> wrote:

> No tienes nada que hacer en el setting
>
> On Sun, 13 Oct 2019, 21:23 Francisco Muller, <
> franciscojavierlevi...@gmail.com> wrote:
>
>> When creating a super user in django with python3 manage.py
>> createsuperuser
>> and at another time I want to log in to the administrator of my project
>> with my super user who does not let me connect with my username and
>> password.
>> What should I change in the settings so that django can remember my
>> superuser account every time I log in?
>>
>> --
>> 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/ccf5f81b-74a4-4149-ab93-76164d056c39%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/CAO_yRT0h9s35OXyr-DUUHs3FsfzBt0dAo2Bn3Xt_wykEY82YBw%40mail.gmail.com.


Re: Django admin no recuerda mi superusuario

2019-10-13 Thread DANIEL URBANO DE LA RUA
No tienes nada que hacer en el setting

On Sun, 13 Oct 2019, 21:23 Francisco Muller, <
franciscojavierlevi...@gmail.com> wrote:

> When creating a super user in django with python3 manage.py createsuperuser
> and at another time I want to log in to the administrator of my project
> with my super user who does not let me connect with my username and
> password.
> What should I change in the settings so that django can remember my
> superuser account every time I log in?
>
> --
> 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/ccf5f81b-74a4-4149-ab93-76164d056c39%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/CAO_yRT3VEm2H-vkj8aR_qnDG%2Bb_yDQwcd4QjcbgAraTVzVguDw%40mail.gmail.com.


Re: django-admin error

2019-08-19 Thread Naty Mina
that's exactly what i tried to do but it doesn't work 

בתאריך יום ראשון, 18 באוגוסט 2019 בשעה 00:38:55 UTC+3, מאת Muhammad Nadeem:
>
> FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE: 
> django-admin startproject mysite
> WHERE "mysite" is the name of your project. you can change this name as 
> you desired. 
>
>
> if further u have any error fell free ping me
>
>
> On Sun, Aug 18, 2019 at 1:32 AM Naty Mina > 
> wrote:
>
>> hi, i'm new in django and trying to create my first project 
>> i followed the documentation and when i try to execute the django-admin 
>> startproject mysite i get error that 'no django settings specified' and to 
>> try 'django-admin.py help' instead for usage.
>> the problem is when i try to do so, i get again the same error message 
>> i need help with that.
>> i attached file so you can see
>> *thank you* 
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/1690dca2-2728-452e-81fe-1458af63ba95%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/f2c4c291-0148-4e3f-9832-a806720e873e%40googlegroups.com.


Re: django-admin error

2019-08-18 Thread DPM
Hi,

Kindly do whatever some told to add in admin.py file above. Thats correct.
After that u can see in admin panel
..

And for heroku what  error you are getting plz share screenshot.
I can help you.

On Mon, 19 Aug, 2019, 2:36 AM Gil Obradors,  wrote:

> 1.-Plese detail more : "But it not run" ?  Any error?  Admin screen
> withous the model?
> You can try doing with the same with decorator and class:
>
> from django.contrib import admin
>
> @admin.register(Pacientes)
> class PacientesAdmin(admin.ModelAdmin)
> pass
>
> Share errors, screen, behaveour...
>
>
> 2.- I don't know heroku but maybe for test/demo your selfPC it could be
> easy for starting...
> Port forwarding and go!
>
>
>
>
> Bests djangos
>
> Missatge de Gabriel Araya Garcia  del dia
> dg., 18 d’ag. 2019 a les 21:41:
>
>> Hi Daniel:
>> I have build a little app in Django, but i have two problems:
>> 1) I can not see the tables in ADMIN, but nevertheless y put in admin.py:
>> from .models import Pacientes
>> admin.site.register(Pacientes)
>>
>> But it not run.
>>
>> 2) I can not upload my project to HEROKU, I've follow all the steps for
>> to do this, but not run
>> Do you know some cpanel to upload my app for demo only (it have 120
>> records)
>>
>> Please, can you help about this?
>>
>> Thanks
>> (excusme my english, my native language is spanish)
>>
>> El sáb., 17 ago. 2019 a las 18:38, Daniel Agbaji ()
>> escribió:
>>
>>> Please check to see it you got install Django properly with the version
>>> of Python you are using.
>>>
>>> On Sat, Aug 17, 2019, 4:38 PM Muhammad Nadeem 
>>> wrote:
>>>
 FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE:
django-admin startproject mysite
 WHERE "mysite" is the name of your project. you can change this name as
 you desired.


 if further u have any error fell free ping me


 On Sun, Aug 18, 2019 at 1:32 AM Naty Mina  wrote:

> hi, i'm new in django and trying to create my first project
> i followed the documentation and when i try to execute the
> django-admin startproject mysite i get error that 'no django settings
> specified' and to try 'django-admin.py help' instead for usage.
> the problem is when i try to do so, i get again the same error message
> i need help with that.
> i attached file so you can see
> *thank you*
>
> --
> 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/1690dca2-2728-452e-81fe-1458af63ba95%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/CALYW77hm8aK%2BNPpfPPexB10ikmQ7Y%2BzezZZULe5mDvgLyVYSSQ%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/CAEnL_2nXTu13StMpfL8EQR6zwhZ6TmpW8RhHYoH69cc-9xWAog%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Gabriel Araya Garcia
>> GMI - Desarrollo de Sistemas Informáticos
>> 99.7721.15.70
>>
>> --
>> 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/CAKVvSDAW0r1hJ7muJ0cEB9NhTwhWVq1O5yCMo1%3D7OsV04nGLtA%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.
> 

Re: django-admin error

2019-08-18 Thread Gil Obradors
1.-Plese detail more : "But it not run" ?  Any error?  Admin screen withous
the model?
You can try doing with the same with decorator and class:

from django.contrib import admin

@admin.register(Pacientes)
class PacientesAdmin(admin.ModelAdmin)
pass

Share errors, screen, behaveour...


2.- I don't know heroku but maybe for test/demo your selfPC it could be
easy for starting...
Port forwarding and go!




Bests djangos

Missatge de Gabriel Araya Garcia  del dia dg.,
18 d’ag. 2019 a les 21:41:

> Hi Daniel:
> I have build a little app in Django, but i have two problems:
> 1) I can not see the tables in ADMIN, but nevertheless y put in admin.py:
> from .models import Pacientes
> admin.site.register(Pacientes)
>
> But it not run.
>
> 2) I can not upload my project to HEROKU, I've follow all the steps for to
> do this, but not run
> Do you know some cpanel to upload my app for demo only (it have 120
> records)
>
> Please, can you help about this?
>
> Thanks
> (excusme my english, my native language is spanish)
>
> El sáb., 17 ago. 2019 a las 18:38, Daniel Agbaji ()
> escribió:
>
>> Please check to see it you got install Django properly with the version
>> of Python you are using.
>>
>> On Sat, Aug 17, 2019, 4:38 PM Muhammad Nadeem 
>> wrote:
>>
>>> FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE:
>>>django-admin startproject mysite
>>> WHERE "mysite" is the name of your project. you can change this name as
>>> you desired.
>>>
>>>
>>> if further u have any error fell free ping me
>>>
>>>
>>> On Sun, Aug 18, 2019 at 1:32 AM Naty Mina  wrote:
>>>
 hi, i'm new in django and trying to create my first project
 i followed the documentation and when i try to execute the django-admin
 startproject mysite i get error that 'no django settings specified' and to
 try 'django-admin.py help' instead for usage.
 the problem is when i try to do so, i get again the same error message
 i need help with that.
 i attached file so you can see
 *thank you*

 --
 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/1690dca2-2728-452e-81fe-1458af63ba95%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/CALYW77hm8aK%2BNPpfPPexB10ikmQ7Y%2BzezZZULe5mDvgLyVYSSQ%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/CAEnL_2nXTu13StMpfL8EQR6zwhZ6TmpW8RhHYoH69cc-9xWAog%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Gabriel Araya Garcia
> GMI - Desarrollo de Sistemas Informáticos
> 99.7721.15.70
>
> --
> 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/CAKVvSDAW0r1hJ7muJ0cEB9NhTwhWVq1O5yCMo1%3D7OsV04nGLtA%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-JoTRhFtARycAprSZnOH77GnqUMGNNiArtrUpN__Qj1-%2Bjww%40mail.gmail.com.


Re: django-admin error

2019-08-18 Thread Gabriel Araya Garcia
Hi Daniel:
I have build a little app in Django, but i have two problems:
1) I can not see the tables in ADMIN, but nevertheless y put in admin.py:
from .models import Pacientes
admin.site.register(Pacientes)

But it not run.

2) I can not upload my project to HEROKU, I've follow all the steps for to
do this, but not run
Do you know some cpanel to upload my app for demo only (it have 120 records)

Please, can you help about this?

Thanks
(excusme my english, my native language is spanish)

El sáb., 17 ago. 2019 a las 18:38, Daniel Agbaji ()
escribió:

> Please check to see it you got install Django properly with the version of
> Python you are using.
>
> On Sat, Aug 17, 2019, 4:38 PM Muhammad Nadeem 
> wrote:
>
>> FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE:
>> django-admin startproject mysite
>> WHERE "mysite" is the name of your project. you can change this name as
>> you desired.
>>
>>
>> if further u have any error fell free ping me
>>
>>
>> On Sun, Aug 18, 2019 at 1:32 AM Naty Mina  wrote:
>>
>>> hi, i'm new in django and trying to create my first project
>>> i followed the documentation and when i try to execute the django-admin
>>> startproject mysite i get error that 'no django settings specified' and to
>>> try 'django-admin.py help' instead for usage.
>>> the problem is when i try to do so, i get again the same error message
>>> i need help with that.
>>> i attached file so you can see
>>> *thank you*
>>>
>>> --
>>> 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/1690dca2-2728-452e-81fe-1458af63ba95%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/CALYW77hm8aK%2BNPpfPPexB10ikmQ7Y%2BzezZZULe5mDvgLyVYSSQ%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/CAEnL_2nXTu13StMpfL8EQR6zwhZ6TmpW8RhHYoH69cc-9xWAog%40mail.gmail.com
> 
> .
>


-- 
Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos
99.7721.15.70

-- 
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/CAKVvSDAW0r1hJ7muJ0cEB9NhTwhWVq1O5yCMo1%3D7OsV04nGLtA%40mail.gmail.com.


Re: django-admin error

2019-08-18 Thread Mituka Devlin Bwanausi
I recommend this: 
https://www.udemy.com/the-ultimate-beginners-guide-to-django-django-2-python-web-dev-website/

Django 2.2 & Python | The Ulitmate Web Development Bootcamp.

Good lectures and easy to grasp as you will also get through a python 
refresher before you get right into Django. 

On Sunday, August 18, 2019 at 2:18:27 PM UTC+2, Arjun Reddy wrote:
>
> Hi
>>
> I would like to start learning Django and can anyone suggest tutorial is 
> best for beginners.
>

-- 
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/22da02d9-2cb6-4ab4-990f-ec31af83a1dd%40googlegroups.com.


Re: django-admin error

2019-08-18 Thread Mituka Devlin Bwanausi
Type it all in one line.like this "*django-admin startproject mysite*"

Your screen shot shows you trying to do things separately.

On Saturday, August 17, 2019 at 10:33:43 PM UTC+2, Naty Mina wrote:
>
> hi, i'm new in django and trying to create my first project 
> i followed the documentation and when i try to execute the django-admin 
> startproject mysite i get error that 'no django settings specified' and to 
> try 'django-admin.py help' instead for usage.
> the problem is when i try to do so, i get again the same error message 
> i need help with that.
> i attached file so you can see
> *thank you* 
>

-- 
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/7ed0262d-e935-4c91-a461-22428069b8e1%40googlegroups.com.


Re: django-admin error

2019-08-18 Thread Arjun Reddy
>
> Hi
>
I would like to start learning Django and can anyone suggest tutorial is
best for beginners.

-- 
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/CALusEWOJFids%2BP0KibXn4RgBQsrPYKKb2E8EzUxD8yqG5dk17g%40mail.gmail.com.


Re: django-admin error

2019-08-17 Thread Ronit Mishra
You've installed your django correctly. I can see the version in your
snapshot.

Also I think you're trying to call django-admin from a python shell. Just
write the command 'django-admin startproject mysite' on the
terminal/command prompt.

This should do it.


On Sun, Aug 18, 2019 at 4:08 AM Daniel Agbaji  wrote:

> Please check to see it you got install Django properly with the version of
> Python you are using.
>
> On Sat, Aug 17, 2019, 4:38 PM Muhammad Nadeem 
> wrote:
>
>> FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE:
>> django-admin startproject mysite
>> WHERE "mysite" is the name of your project. you can change this name as
>> you desired.
>>
>>
>> if further u have any error fell free ping me
>>
>>
>> On Sun, Aug 18, 2019 at 1:32 AM Naty Mina  wrote:
>>
>>> hi, i'm new in django and trying to create my first project
>>> i followed the documentation and when i try to execute the django-admin
>>> startproject mysite i get error that 'no django settings specified' and to
>>> try 'django-admin.py help' instead for usage.
>>> the problem is when i try to do so, i get again the same error message
>>> i need help with that.
>>> i attached file so you can see
>>> *thank you*
>>>
>>> --
>>> 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/1690dca2-2728-452e-81fe-1458af63ba95%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/CALYW77hm8aK%2BNPpfPPexB10ikmQ7Y%2BzezZZULe5mDvgLyVYSSQ%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/CAEnL_2nXTu13StMpfL8EQR6zwhZ6TmpW8RhHYoH69cc-9xWAog%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/CACh0EhyuXD2Xix4uGNTwBr7nPeebnbweogmhOfZx7iLmsFi0BA%40mail.gmail.com.


Re: django-admin error

2019-08-17 Thread Daniel Agbaji
Please check to see it you got install Django properly with the version of
Python you are using.

On Sat, Aug 17, 2019, 4:38 PM Muhammad Nadeem 
wrote:

> FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE:
> django-admin startproject mysite
> WHERE "mysite" is the name of your project. you can change this name as
> you desired.
>
>
> if further u have any error fell free ping me
>
>
> On Sun, Aug 18, 2019 at 1:32 AM Naty Mina  wrote:
>
>> hi, i'm new in django and trying to create my first project
>> i followed the documentation and when i try to execute the django-admin
>> startproject mysite i get error that 'no django settings specified' and to
>> try 'django-admin.py help' instead for usage.
>> the problem is when i try to do so, i get again the same error message
>> i need help with that.
>> i attached file so you can see
>> *thank you*
>>
>> --
>> 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/1690dca2-2728-452e-81fe-1458af63ba95%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/CALYW77hm8aK%2BNPpfPPexB10ikmQ7Y%2BzezZZULe5mDvgLyVYSSQ%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/CAEnL_2nXTu13StMpfL8EQR6zwhZ6TmpW8RhHYoH69cc-9xWAog%40mail.gmail.com.


Re: django-admin error

2019-08-17 Thread Muhammad Nadeem
FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE:
django-admin startproject mysite
WHERE "mysite" is the name of your project. you can change this name as you
desired.


if further u have any error fell free ping me


On Sun, Aug 18, 2019 at 1:32 AM Naty Mina  wrote:

> hi, i'm new in django and trying to create my first project
> i followed the documentation and when i try to execute the django-admin
> startproject mysite i get error that 'no django settings specified' and to
> try 'django-admin.py help' instead for usage.
> the problem is when i try to do so, i get again the same error message
> i need help with that.
> i attached file so you can see
> *thank you*
>
> --
> 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/1690dca2-2728-452e-81fe-1458af63ba95%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/CALYW77hm8aK%2BNPpfPPexB10ikmQ7Y%2BzezZZULe5mDvgLyVYSSQ%40mail.gmail.com.


Re: Django admin application for Android

2019-07-22 Thread Franck Tchouanga
That's coo

On Mon, Jul 22, 2019, 07:56 Jens-Joris Decorte 
wrote:

> Hi Alexandre, the app is written in Kotlin. Looked for using flutter but
> the webview support is not quite there yet..
>
> Op woensdag 17 juli 2019 17:26:04 UTC+2 schreef Alexandre Guignard:
>>
>> That's cool, thanks 
>> Which langage do You use for the app ?
>
> --
> 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/4e27ac91-ffd4-4bfa-9c8c-5d4c27ba87a2%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/CANRJ%3D3%3Ds36Zg80YTNw_5v7T67WyXTsyeNRON3cMOo8GwH3_aqg%40mail.gmail.com.


Re: Django admin application for Android

2019-07-22 Thread Jens-Joris Decorte
Hi Alexandre, the app is written in Kotlin. Looked for using flutter but 
the webview support is not quite there yet..

Op woensdag 17 juli 2019 17:26:04 UTC+2 schreef Alexandre Guignard:
>
> That's cool, thanks  
> Which langage do You use for the app ?

-- 
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/4e27ac91-ffd4-4bfa-9c8c-5d4c27ba87a2%40googlegroups.com.


Re: Django admin application for Android

2019-07-22 Thread Jens-Joris Decorte
Hi Derek,

The GOLD plan is for users who want to manage multiple projects.
On top of that they get some other benefits like using shortcuts and 
rearranging the order of the models.

This is $0.99 per month as a way to support my development :-)

Kind regards

Op woensdag 17 juli 2019 08:11:56 UTC+2 schreef Derek:
>
> Can you explain more about the GOLD plan - what is it and how much does it 
> cost?
>
> On Monday, 15 July 2019 12:51:58 UTC+2, Jens-Joris Decorte wrote:
>>
>> Hello Django developers!
>>
>> Being both a Django developer and a heavy user of Django applications, I 
>> found myself accessing the admin interface of my Django sites quite often 
>> via my smartphone when I am on the road.
>> I was stoked to see the new responsive admin since Django 2.0, which made 
>> this process much smoother.
>>
>> Lately I've been developing an *Android app* to access your site's 
>> admin. It ports the *responsive design to ALL Django versions* and 
>> includes even more features to make the experience very mobile friendly.
>> I have just released this app on the Google Play Store 
>>  so 
>> feel free to check it out or to share it with other Django developer / 
>> users. Any feedback will also be appreciated!
>>
>> The app can be found here: 
>> https://play.google.com/store/apps/details?id=com.jjdc.djangoadmin
>>
>> [image: Django-admin-1] 
>>  [image: 
>> Django-admin-2.jpg] 
>> 
>>
>

-- 
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/fbd4f7b2-4ae7-4ac2-b8fe-a7839d3f0d1d%40googlegroups.com.


Re: Django admin application for Android

2019-07-22 Thread Jens-Joris Decorte
Hi Derek,

The GOLD plan is for users who want to manage multiple projects.
On top of that they get some other benefits like using shortcuts and 
rearranging the order of the models.

This is $0.99 per month as a way to support my development :-)

Kind regards

Op woensdag 17 juli 2019 08:11:56 UTC+2 schreef Derek:
>
> Can you explain more about the GOLD plan - what is it and how much does it 
> cost?
>
> On Monday, 15 July 2019 12:51:58 UTC+2, Jens-Joris Decorte wrote:
>>
>> Hello Django developers!
>>
>> Being both a Django developer and a heavy user of Django applications, I 
>> found myself accessing the admin interface of my Django sites quite often 
>> via my smartphone when I am on the road.
>> I was stoked to see the new responsive admin since Django 2.0, which made 
>> this process much smoother.
>>
>> Lately I've been developing an *Android app* to access your site's 
>> admin. It ports the *responsive design to ALL Django versions* and 
>> includes even more features to make the experience very mobile friendly.
>> I have just released this app on the Google Play Store 
>>  so 
>> feel free to check it out or to share it with other Django developer / 
>> users. Any feedback will also be appreciated!
>>
>> The app can be found here: 
>> https://play.google.com/store/apps/details?id=com.jjdc.djangoadmin
>>
>> [image: Django-admin-1] 
>>  [image: 
>> Django-admin-2.jpg] 
>> 
>>
>

-- 
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/be43dd1b-9297-429e-b029-e8c18b2398b9%40googlegroups.com.


Re: Django admin application for Android

2019-07-22 Thread Jens-Joris Decorte
Hi Derek,

The GOLD plan is for users who want to manage multiple projects.
On top of that they get some other benefits like using shortcuts and 
rearranging the order of the models.

This is $0.99 per month as a way to support my development :-)

Kind regards

Op woensdag 17 juli 2019 08:11:56 UTC+2 schreef Derek:
>
> Can you explain more about the GOLD plan - what is it and how much does it 
> cost?
>
> On Monday, 15 July 2019 12:51:58 UTC+2, Jens-Joris Decorte wrote:
>>
>> Hello Django developers!
>>
>> Being both a Django developer and a heavy user of Django applications, I 
>> found myself accessing the admin interface of my Django sites quite often 
>> via my smartphone when I am on the road.
>> I was stoked to see the new responsive admin since Django 2.0, which made 
>> this process much smoother.
>>
>> Lately I've been developing an *Android app* to access your site's 
>> admin. It ports the *responsive design to ALL Django versions* and 
>> includes even more features to make the experience very mobile friendly.
>> I have just released this app on the Google Play Store 
>>  so 
>> feel free to check it out or to share it with other Django developer / 
>> users. Any feedback will also be appreciated!
>>
>> The app can be found here: 
>> https://play.google.com/store/apps/details?id=com.jjdc.djangoadmin
>>
>> [image: Django-admin-1] 
>>  [image: 
>> Django-admin-2.jpg] 
>> 
>>
>

-- 
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/56e4363e-85b4-401d-864f-eb14bb559366%40googlegroups.com.


Re: Django admin application for Android

2019-07-17 Thread KIKOYO ISAAC
great dude!!


On Tue, Jul 16, 2019 at 11:12 PM Derek  wrote:

> Can you explain more about the GOLD plan - what is it and how much does it
> cost?
> Monday, 15 July 2019 12:51:58 UTC+2, Jens-Joris Decorte wrote:
>>
>> Hello Django developers!
>>
>> Being both a Django developer and a heavy user of Django applications, I
>> found myself accessing the admin interface of my Django sites quite often
>> via my smartphone when I am on the road.
>> I was stoked to see the new responsive admin since Django 2.0, which made
>> this process much smoother.
>>
>> Lately I've been developing an *Android app* to access your site's
>> admin. It ports the *responsive design to ALL Django versions* and
>> includes even more features to make the experience very mobile friendly.
>> I have just released this app on the Google Play Store
>>  so
>> feel free to check it out or to share it with other Django developer /
>> users. Any feedback will also be appreciated!
>>
>> The app can be found here:
>> https://play.google.com/store/apps/details?id=com.jjdc.djangoadmin
>>
>> [image: Django-admin-1]
>>  [image:
>> Django-admin-2.jpg]
>> 
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/65005436-711a-416f-8812-1ea88cffdf64%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKXkcrcGwzTMKzk%2Bd4DKS0fdt9Nz4XE7_PqieBKMRzbUReJHbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django admin application for Android

2019-07-17 Thread Derek
Can you explain more about the GOLD plan - what is it and how much does it 
cost?

On Monday, 15 July 2019 12:51:58 UTC+2, Jens-Joris Decorte wrote:
>
> Hello Django developers!
>
> Being both a Django developer and a heavy user of Django applications, I 
> found myself accessing the admin interface of my Django sites quite often 
> via my smartphone when I am on the road.
> I was stoked to see the new responsive admin since Django 2.0, which made 
> this process much smoother.
>
> Lately I've been developing an *Android app* to access your site's admin. 
> It ports the *responsive design to ALL Django versions* and includes even 
> more features to make the experience very mobile friendly.
> I have just released this app on the Google Play Store 
>  so 
> feel free to check it out or to share it with other Django developer / 
> users. Any feedback will also be appreciated!
>
> The app can be found here: 
> https://play.google.com/store/apps/details?id=com.jjdc.djangoadmin
>
> [image: Django-admin-1] 
>  [image: 
> Django-admin-2.jpg] 
> 
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/65005436-711a-416f-8812-1ea88cffdf64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django admin application for Android

2019-07-15 Thread Ibrahim K
Good work, really appreciated one!!

On Monday, July 15, 2019 at 4:21:58 PM UTC+5:30, Jens-Joris Decorte wrote:
>
> Hello Django developers!
>
> Being both a Django developer and a heavy user of Django applications, I 
> found myself accessing the admin interface of my Django sites quite often 
> via my smartphone when I am on the road.
> I was stoked to see the new responsive admin since Django 2.0, which made 
> this process much smoother.
>
> Lately I've been developing an *Android app* to access your site's admin. 
> It ports the *responsive design to ALL Django versions* and includes even 
> more features to make the experience very mobile friendly.
> I have just released this app on the Google Play Store 
>  so 
> feel free to check it out or to share it with other Django developer / 
> users. Any feedback will also be appreciated!
>
> The app can be found here: 
> https://play.google.com/store/apps/details?id=com.jjdc.djangoadmin
>
> [image: Django-admin-1] 
>  [image: 
> Django-admin-2.jpg] 
> 
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2bdf029d-f8d9-470a-b4b9-69dab007e82c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Admin Login will not Redirect following Authentication on Remote Host

2019-07-12 Thread Sidnei Pereira
Hahahaha I'm glad it helped! I will probably add this answer to your 
stackoverflow question. Maybe it will help someone else.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c8ba5cd8-5404-438a-93e3-6f928f408bf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django-admin ...command error

2019-05-03 Thread Jorge Gimeno
This is a good case to use manage.py instead, as manage.py sets
DJANGO_SETTINGS_MODULE.  See here:
https://docs.djangoproject.com/en/2.2/ref/django-admin/.

-Jorge

On Fri, May 3, 2019 at 12:41 PM Josiah Umezurike <
pcintegral.pcintegr...@gmail.com> wrote:

> I shows that there is a setting problem properly not configured. I did
> configure the settings.py and wsgi.py
> I specified the path.
>
> I have tried with no avail to fix this problem. I will hope that some
> could assist on this one. If you have experienced this before please help.
>
> Thanks in advance.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9dc45579-046a-4535-8a2e-4bf72a4a4691%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANfN%3DK-Ae4eHq849q30s%2BziVVFicnzQRxVUrcP_fOr2GZM8%3D8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   5   6   7   8   >