Re: django windows authentication

2023-05-19 Thread Chelsea Fan
thank you

On Fri, May 19, 2023 at 2:44 PM Brian Gitau  wrote:

> Hello! Windows authentication is a method of authenticating users based on
> their Windows credentials. It allows users to log in to a system using
> their Windows username and password, eliminating the need for separate
> authentication mechanisms.
>
> In Django, you can integrate Windows authentication using a package called
> "django-windowsauth." This package provides a middleware that intercepts
> requests and automatically authenticates users based on their Windows
> credentials.
>
> On Fri, May 19, 2023 at 11:44 AM Chelsea Fan <
> allaberdi16yazha...@gmail.com> wrote:
>
>> Hello guys, what is windows authentication and how is it work in django
>> and how can  I realize 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/CAJwZndcVcsV_-68akHijcu14%2BOhBpOwgDvu0Qyu8Tr4qqUW_Sw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJwZndcVcsV_-68akHijcu14%2BOhBpOwgDvu0Qyu8Tr4qqUW_Sw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAMJ3z%3D3Rg1KKK1nfqOS4%3DKoEe_9b5%3Dcq7Frw%2BYROUnWEyJ81Qg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMJ3z%3D3Rg1KKK1nfqOS4%3DKoEe_9b5%3Dcq7Frw%2BYROUnWEyJ81Qg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJwZnddJ74ZWzV5Wbv%3DurgceVKV4%2BFc%3DMzGY6XFn0j5JQbVjCw%40mail.gmail.com.


django windows authentication

2023-05-19 Thread Chelsea Fan
Hello guys, what is windows authentication and how is it work in django and
how can  I realize 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/CAJwZndcVcsV_-68akHijcu14%2BOhBpOwgDvu0Qyu8Tr4qqUW_Sw%40mail.gmail.com.


Re: django smtp.gmail error

2023-05-17 Thread Chelsea Fan
thank you ))

On Thu, May 18, 2023 at 9:52 AM Vishesh Mangla 
wrote:

>
> https://medium.com/@manglavishesh64/using-gmail-smtp-with-3rd-party-apps-be3e15f4a7fc
>
> On Wed, 17 May, 2023, 19:50 Chelsea Fan, 
> wrote:
>
>> how can I find your medium stories?
>>
>> On Wed, May 17, 2023 at 7:09 PM Vishesh Mangla 
>> wrote:
>>
>>> You can't use SMTP with Google.
>>> You need to use oauth through Google cloud platform. Actually there is
>>> one way to use SMTP with Google to login through third party apps. Check
>>> out my stories on medium. I had written one for a solution.
>>>
>>> On Wed, 17 May, 2023, 19:36 Vishesh Mangla, 
>>> wrote:
>>>
>>>> Are you logging through Gmail?
>>>>
>>>> On Wed, 17 May, 2023, 19:35 Chelsea Fan, 
>>>> wrote:
>>>>
>>>>> I deleted all passwords and thhen created new password but nothig was
>>>>> happen
>>>>>
>>>>> On Wed, May 17, 2023 at 6:54 PM Lakshyaraj Dash <
>>>>> dashlakshyaraj2...@gmail.com> wrote:
>>>>>
>>>>>> First verify if the email through which the app password was created
>>>>>> is same or different. If different then it will not work.
>>>>>> OR
>>>>>> Please recreate a new app and copy the password again and enter.
>>>>>>
>>>>>> Thanks and Regards
>>>>>> Lakshyaraj Dash
>>>>>>
>>>>>> On Wed, May 17, 2023, 19:17 Chelsea Fan <
>>>>>> allaberdi16yazha...@gmail.com> wrote:
>>>>>>
>>>>>>> how can I solve this? I enabled 2fa then created app password but it
>>>>>>> does not work.
>>>>>>> smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password
>>>>>>> not accepted. Learn more at\n5.7.8
>>>>>>> https://support.google.com/mail/?p=BadCredentials
>>>>>>> ev21-20020a17090729d500b00965b416585bsm12337451ejc.118 - gsmtp')
>>>>>>>
>>>>>>> --
>>>>>>> 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/CAJwZndce5fV-BuwnLUTrU73e%3DvQ_QbArGoyf6qSnQr4wyxHQOw%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/CAJwZndce5fV-BuwnLUTrU73e%3DvQ_QbArGoyf6qSnQr4wyxHQOw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>>> 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/CAF7qQgBwYUz8HaRizz_4AVU4rwNcYUX8v1Au%2BWN-UNqHdc1LdQ%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgBwYUz8HaRizz_4AVU4rwNcYUX8v1Au%2BWN-UNqHdc1LdQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> 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/CAJwZnddw2dpYE35Ww_5W%2BUCQiDvdTzZ1B7ojNry50aBkH-efzA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAJwZnddw2dpYE35Ww_5W%2BUCQiDvdTzZ1B7ojNry50aBkH-efzA%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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 dja

Re: django smtp.gmail error

2023-05-17 Thread Chelsea Fan
how can I find your medium stories?

On Wed, May 17, 2023 at 7:09 PM Vishesh Mangla 
wrote:

> You can't use SMTP with Google.
> You need to use oauth through Google cloud platform. Actually there is one
> way to use SMTP with Google to login through third party apps. Check out my
> stories on medium. I had written one for a solution.
>
> On Wed, 17 May, 2023, 19:36 Vishesh Mangla, 
> wrote:
>
>> Are you logging through Gmail?
>>
>> On Wed, 17 May, 2023, 19:35 Chelsea Fan, 
>> wrote:
>>
>>> I deleted all passwords and thhen created new password but nothig was
>>> happen
>>>
>>> On Wed, May 17, 2023 at 6:54 PM Lakshyaraj Dash <
>>> dashlakshyaraj2...@gmail.com> wrote:
>>>
>>>> First verify if the email through which the app password was created is
>>>> same or different. If different then it will not work.
>>>> OR
>>>> Please recreate a new app and copy the password again and enter.
>>>>
>>>> Thanks and Regards
>>>> Lakshyaraj Dash
>>>>
>>>> On Wed, May 17, 2023, 19:17 Chelsea Fan 
>>>> wrote:
>>>>
>>>>> how can I solve this? I enabled 2fa then created app password but it
>>>>> does not work.
>>>>> smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password
>>>>> not accepted. Learn more at\n5.7.8
>>>>> https://support.google.com/mail/?p=BadCredentials
>>>>> ev21-20020a17090729d500b00965b416585bsm12337451ejc.118 - gsmtp')
>>>>>
>>>>> --
>>>>> 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/CAJwZndce5fV-BuwnLUTrU73e%3DvQ_QbArGoyf6qSnQr4wyxHQOw%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAJwZndce5fV-BuwnLUTrU73e%3DvQ_QbArGoyf6qSnQr4wyxHQOw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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/CAF7qQgBwYUz8HaRizz_4AVU4rwNcYUX8v1Au%2BWN-UNqHdc1LdQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgBwYUz8HaRizz_4AVU4rwNcYUX8v1Au%2BWN-UNqHdc1LdQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAJwZnddw2dpYE35Ww_5W%2BUCQiDvdTzZ1B7ojNry50aBkH-efzA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAJwZnddw2dpYE35Ww_5W%2BUCQiDvdTzZ1B7ojNry50aBkH-efzA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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/CACaE8x4165he-ofirdmyqtc-BksB18dEcKWebnzU2j2h6%3Dhymg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACaE8x4165he-ofirdmyqtc-BksB18dEcKWebnzU2j2h6%3Dhymg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJwZndcYssDjkSc%2BFGCpy%3DWVPp6R%2Bd0a8Lo1puUrvDAubErbhw%40mail.gmail.com.


Re: django smtp.gmail error

2023-05-17 Thread Chelsea Fan
yeah

On Wed, May 17, 2023 at 7:07 PM Vishesh Mangla 
wrote:

> Are you logging through Gmail?
>
> On Wed, 17 May, 2023, 19:35 Chelsea Fan, 
> wrote:
>
>> I deleted all passwords and thhen created new password but nothig was
>> happen
>>
>> On Wed, May 17, 2023 at 6:54 PM Lakshyaraj Dash <
>> dashlakshyaraj2...@gmail.com> wrote:
>>
>>> First verify if the email through which the app password was created is
>>> same or different. If different then it will not work.
>>> OR
>>> Please recreate a new app and copy the password again and enter.
>>>
>>> Thanks and Regards
>>> Lakshyaraj Dash
>>>
>>> On Wed, May 17, 2023, 19:17 Chelsea Fan 
>>> wrote:
>>>
>>>> how can I solve this? I enabled 2fa then created app password but it
>>>> does not work.
>>>> smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password
>>>> not accepted. Learn more at\n5.7.8
>>>> https://support.google.com/mail/?p=BadCredentials
>>>> ev21-20020a17090729d500b00965b416585bsm12337451ejc.118 - gsmtp')
>>>>
>>>> --
>>>> 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/CAJwZndce5fV-BuwnLUTrU73e%3DvQ_QbArGoyf6qSnQr4wyxHQOw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAJwZndce5fV-BuwnLUTrU73e%3DvQ_QbArGoyf6qSnQr4wyxHQOw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAF7qQgBwYUz8HaRizz_4AVU4rwNcYUX8v1Au%2BWN-UNqHdc1LdQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgBwYUz8HaRizz_4AVU4rwNcYUX8v1Au%2BWN-UNqHdc1LdQ%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAJwZnddw2dpYE35Ww_5W%2BUCQiDvdTzZ1B7ojNry50aBkH-efzA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJwZnddw2dpYE35Ww_5W%2BUCQiDvdTzZ1B7ojNry50aBkH-efzA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CACaE8x6m0YXk3o%3Df360a5F6x7sWOStSwAqOH7skHYKMGuWj9qg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACaE8x6m0YXk3o%3Df360a5F6x7sWOStSwAqOH7skHYKMGuWj9qg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJwZndd%2BqUMCwc61atbR%3DR%2BbuUQdKYUkTDrwFn2tAru0T8%3D4Sg%40mail.gmail.com.


Re: django smtp.gmail error

2023-05-17 Thread Chelsea Fan
I deleted all passwords and thhen created new password but nothig was happen

On Wed, May 17, 2023 at 6:54 PM Lakshyaraj Dash <
dashlakshyaraj2...@gmail.com> wrote:

> First verify if the email through which the app password was created is
> same or different. If different then it will not work.
> OR
> Please recreate a new app and copy the password again and enter.
>
> Thanks and Regards
> Lakshyaraj Dash
>
> On Wed, May 17, 2023, 19:17 Chelsea Fan 
> wrote:
>
>> how can I solve this? I enabled 2fa then created app password but it does
>> not work.
>> smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not
>> accepted. Learn more at\n5.7.8
>> https://support.google.com/mail/?p=BadCredentials
>> ev21-20020a17090729d500b00965b416585bsm12337451ejc.118 - gsmtp')
>>
>> --
>> 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/CAJwZndce5fV-BuwnLUTrU73e%3DvQ_QbArGoyf6qSnQr4wyxHQOw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJwZndce5fV-BuwnLUTrU73e%3DvQ_QbArGoyf6qSnQr4wyxHQOw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAF7qQgBwYUz8HaRizz_4AVU4rwNcYUX8v1Au%2BWN-UNqHdc1LdQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF7qQgBwYUz8HaRizz_4AVU4rwNcYUX8v1Au%2BWN-UNqHdc1LdQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJwZnddw2dpYE35Ww_5W%2BUCQiDvdTzZ1B7ojNry50aBkH-efzA%40mail.gmail.com.


django smtp.gmail error

2023-05-17 Thread Chelsea Fan
how can I solve this? I enabled 2fa then created app password but it does
not work.
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not
accepted. Learn more at\n5.7.8
https://support.google.com/mail/?p=BadCredentials
ev21-20020a17090729d500b00965b416585bsm12337451ejc.118 - gsmtp')

-- 
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/CAJwZndce5fV-BuwnLUTrU73e%3DvQ_QbArGoyf6qSnQr4wyxHQOw%40mail.gmail.com.


Re: Image uploaded to database but not displaying

2023-04-12 Thread Chelsea Fan
can see your settings.py and urls.py inside project folder?

On Wed, Apr 12, 2023 at 11:57 AM David Nugent  wrote:

> It is very important to understand the difference between “static” and
> “media”. The two are somewhat similar, and the code to handle (serve) each
> is even almost identical. Conceptually though they are quite different
> things.
>
> static files are assets provided by your app and served to satisfy the
> direct needs of your app - e.g. javascript, css and other assets which
> never change, updated or rendered.
> media files are more fluid things, usually uploaded or processed files,
> objects delivered by the application that are not a core part of rendering
> web pages.
>
> Both STATIC_URL and MEDIA_URL are set up in your settings. In production,
> either or both may be served externally to django.
>
> By default, MEDIA serving is not configured in Django settings, but there
> are many mentions of static files with a dozen or so possible configuration
> items. These are there because such configuration is important right at the
> start of developing a Django app.
>
> If you need information on media handling though, you need to go back to
> the Django docs as there are no hints on how to do this in the default
> generated configuration.
>
> The point is - do not confuse the two, and definitely do not try to tangle
> both as it will eventually lead to problems. Configure media separately
> from static and you will not encounter any of those problems, especially so
> when you get to deploying to production where you may wish to handle them
> differently (serving from cloud vs locally and choice of what served each
> etc and a myriad of other choices).
>
> So, back to your problem, I would guess that you are simply missing a url
> handler for your media files at path(‘media/‘,…(, and the path stored in
> your db is almost definitely correct. The handler you will probably use in
> development mode will look something like your dev static files config,
> except for MEDIA_URL and pointing to the file system location where they
> are actually being uploaded.
>
> HTH,
> David
>
>
>
> From: Michael Starr  
> Reply: django-users@googlegroups.com 
> 
> Date: 12 April 2023 at 18:00:56
> To: Django users 
> 
> Subject:  Image uploaded to database but not displaying
>
> I am finding that the url of files stored in a database with Django is
>> automated to /media/[filename], which is neat, because that keeps it
>> organized and from images being everywhere. However, only the alt text of
>> my file shows--the url is correct but the image doesn't show. I've tried
>> using static, as well as just {{ image.url }} and neither method worked for
>> me. Also, which method is correct? Can we frikkin decide already? :P
>>
>> Thank you.
>> Michael
>> --
>> 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/4d1c1c52-c4d8-4f46-8333-adc673095fc1n%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/CAE5VhgU%2BCLvoawzUZrb22PBTDi3-%2ByQDCUzHWesOQRawFky5Nw%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/CAJwZndejpdZRyk09Eor7WoXi7TKDhy0c-hDZ1iO48E7mqVTc8w%40mail.gmail.com.


Re: Django Guide

2023-03-06 Thread Chelsea Fan
Hello Abdullah, watch videos Denis Ivy in youtube

On Sun, Mar 5, 2023 at 8:58 PM Abdullah Niaz 
wrote:

> Hello, My Name is Abdullah. I am pursuing my computer science degree & I
> am in the second semester. I learned Python At my school. Now, I want to
> learn Django. Can Anyone guide me
>
> --
> 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/ec131a61-b003-4979-bdb5-de5466bef6b2n%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/CAJwZnddMo%3D0RT_OMw0fbo4quSiTtq7np6vV-W4YzJ%3D_d3%3Djkng%40mail.gmail.com.


Re: Can't render images from database

2023-03-03 Thread Chelsea Fan
did you setup static and media files?

On Sat, Mar 4, 2023 at 3:00 AM Michael Starr  wrote:

> My next issue is that I'm having difficulty displaying images stored in
> the database.
>
> It's a mouthful so I'll spare you, but I'll add details as I go along.
>
> Michael
>
> --
> 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/04cb18d8-4609-43a4-9296-96d6b597daban%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/CAJwZndfr8%3Da5jCJGRLNeKAWeersxt8sBFsWzCc%3DUKUmBxK5%3DdA%40mail.gmail.com.


drf serializers

2023-02-24 Thread Chelsea Fan
how to count manytomany field items in serializers.py?

-- 
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/CAJwZndd9D7QWZpCW%2BaX%3DxUUcKukU8xNw_d8cN7kJvvvSbuHH7A%40mail.gmail.com.


Re: django model method

2023-02-09 Thread Chelsea Fan
understood, is there any way to filter objects by method value?

On Thu, Feb 9, 2023 at 4:42 PM Andréas Kühne 
wrote:

> No.
>
> Ordering works by using the database to order the models. It therefore
> needs to be a database field - otherwise the database can't order by the
> field?
>
> Regards,
>
> Andréas
>
>
> Den tors 9 feb. 2023 kl 12:09 skrev Chelsea Fan <
> allaberdi16yazha...@gmail.com>:
>
>> hello guys, Is it possible to use model method value to ordering model
>> objects in meta class?
>>
>> class Post(models.Model):
>> title = models.CharField(max_length=255, verbose_name="ady")
>> text = RichTextField(verbose_name="text")
>> tagList = models.ManyToManyField(Tag, verbose_name="taglar",
>> related_query_name="tagList")
>> image = models.ImageField(upload_to="postImage/", verbose_name=
>> "surat")
>> seen = models.ManyToManyField(UserId,verbose_name="görülen sany",
>> blank=True, related_name="gorulen")
>> like = models.ManyToManyField(UserId,verbose_name="like sany", blank=
>> True)
>> share = models.PositiveIntegerField(verbose_name="paýlaşylan sany",
>> null=True, blank=True, default="0")
>> createdAt = models.DateTimeField(auto_now_add=True, verbose_name="goşulan
>> güni")
>>
>> class Meta:
>> verbose_name_plural="Makalalar"
>> # ordering = ("-createdAt",)
>> ordering = ["-hotness",]
>>
>> def __str__(self):
>> return self.title
>>
>> def likes(self):
>> return self.like.count()
>>
>> likes.short_description = "Like sany"
>> likes.allow_tags = True
>>
>> def seens(self):
>> return self.seen.count()
>>
>> seens.short_description = "Görülen sany"
>> seens.allow_tags = True
>>
>> @property
>> def hotness(self):
>> return self.likes() + self.seens() + self.share
>>
>> --
>> 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/CAJwZndfmes4g2KWUB3Fz6wNRORQ40Fxj_NYwYKWCF6DX96OVyg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJwZndfmes4g2KWUB3Fz6wNRORQ40Fxj_NYwYKWCF6DX96OVyg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAK4qSCfpaVQ1YXMbVae26RLgsYYBcLRMcpgQOEm9z3%2B6NpN5Ww%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAK4qSCfpaVQ1YXMbVae26RLgsYYBcLRMcpgQOEm9z3%2B6NpN5Ww%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJwZnddOzyjuawMFe4pZtn4oj8YxZDBX_N1SK492G3RhENyVqg%40mail.gmail.com.


django model method

2023-02-09 Thread Chelsea Fan
hello guys, Is it possible to use model method value to ordering model
objects in meta class?

class Post(models.Model):
title = models.CharField(max_length=255, verbose_name="ady")
text = RichTextField(verbose_name="text")
tagList = models.ManyToManyField(Tag, verbose_name="taglar",
related_query_name="tagList")
image = models.ImageField(upload_to="postImage/", verbose_name="surat")
seen = models.ManyToManyField(UserId,verbose_name="görülen sany", blank=
True, related_name="gorulen")
like = models.ManyToManyField(UserId,verbose_name="like sany", blank=
True)
share = models.PositiveIntegerField(verbose_name="paýlaşylan sany", null
=True, blank=True, default="0")
createdAt = models.DateTimeField(auto_now_add=True, verbose_name="goşulan
güni")

class Meta:
verbose_name_plural="Makalalar"
# ordering = ("-createdAt",)
ordering = ["-hotness",]

def __str__(self):
return self.title

def likes(self):
return self.like.count()

likes.short_description = "Like sany"
likes.allow_tags = True

def seens(self):
return self.seen.count()

seens.short_description = "Görülen sany"
seens.allow_tags = True

@property
def hotness(self):
return self.likes() + self.seens() + self.share

-- 
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/CAJwZndfmes4g2KWUB3Fz6wNRORQ40Fxj_NYwYKWCF6DX96OVyg%40mail.gmail.com.


Please help

2023-01-15 Thread Chelsea Fan
Hello guys, how can I return blurhash link in django, can I use Pillow or
any other python tools?

-- 
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/CAJwZndez16oYpj7oxsWrfQm6ieqQw5LD8X-LuhmEaPAqtGBHWw%40mail.gmail.com.


Re: Looking for a Django firm

2022-09-14 Thread Chelsea Fan
I am interested, from Turkmenistan

On Wed, Sep 14, 2022 at 9:49 PM Damanjeet Singh 
wrote:

> Hello Mike,
>
> I am interested and from UK.
>
> If you let me know your email, I can forward my profile to you.
>
> Regards
> Damanjeet
> mailtoda...@gmail.com
>
> On Tue, 13 Sept 2022, 01:01 Mike Dewhirst,  wrote:
>
>> Hi all - I'm looking for a Django outfit with an interest in chemistry
>> or customers in the chemical industry in Australia.
>>
>> Possible opportunity.
>>
>> Best to respond off list and there will be an NDA.
>>
>> Cheers
>>
>> Mike
>>
>> --
>> 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/5b7dfee7-dc18-052d-994f-a27bb78ed71d%40dewhirst.com.au
>> .
>>
> --
> 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/CAGLHGi4QeHpjA3RMgGh%2BWW1bz1cj2xxEN4gfdXu00NNnnBoDjw%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/CAJwZndeeATxK6aP9e_ZyZTS6DYo8gbGtCtfBcwbe8LD6%3DqZBdg%40mail.gmail.com.


Re: please help me to solve

2022-07-26 Thread Chelsea Fan
thanks bro

On Wed, Jul 27, 2022 at 7:36 AM Abdul Qoyyuum 
wrote:

> This is a Django group. I don't know how its implemented in Android but
> for your use case, you will need to learn Socket programming. Other than
> that, I can't help you. Sorry.
>
> On Tue, Jul 26, 2022 at 6:55 PM Chelsea Fan 
> wrote:
>
>> Hello, such a question, we plan to implement an application for Android,
>> for a TV and for a phone, it will be an application with the broadcast of
>> different channels, you will need to stream somehow, i.e. there is no
>> direct access.
>> which technologies I 'v to use for 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/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> Abdul Qoyyuum Bin Haji Abdul Kadir
> HP No: +673 720 8043
>
> --
> 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/CAA3DN%3DWBB3tCjYZMDo5q7ce85-7u64uUB6eWhkjpb-0BfEVJVQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAA3DN%3DWBB3tCjYZMDo5q7ce85-7u64uUB6eWhkjpb-0BfEVJVQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

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


please help me to solve

2022-07-26 Thread Chelsea Fan
Hello, such a question, we plan to implement an application for Android,
for a TV and for a phone, it will be an application with the broadcast of
different channels, you will need to stream somehow, i.e. there is no
direct access.
which technologies I 'v to use for 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/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com.


Re: Джанго проект

2021-06-02 Thread Chelsea Fan
Антонио Меле " джанго 2 в примерах"

On Wed, 2 Jun 2021, 5:43 pm КОРШУНОВ ГЕОРГИЙ, 
wrote:

> Всем привет, я начинающий разработчик. Где я могу почитать полный,
> подробный гид по использованию фреймворка джанго? Минимум воды, максимум
> эффективной информации, подскажите пожалуйста.
>
> --
> 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/a575b9b8-5bbd-4e42-833d-3d548119294fn%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/CAJwZndeA8fyD%3DjbcSk4oHPnDjMFG-LFZzU9SxPmxWfU78Kn7ww%40mail.gmail.com.


Re: CSS not linking with HTML

2021-05-31 Thread Chelsea Fan
You are welcome))

On Mon, 31 May 2021, 6:44 pm sukhy gill,  wrote:

> Thanku so much all of you for your valuable guidance to me 
>
> On Mon, May 31, 2021, 21:07 Chelsea Fan  wrote:
>
>> Good luck 
>>
>> On Mon, 31 May 2021, 6:31 pm sukhy gill, 
>> wrote:
>>
>>> I deleted my project and will start project again from begining and then
>>> will let you know the progress.
>>> Regards
>>>
>>> On Sun, May 30, 2021, 16:48 Mehdi Ismail >>
>>>> you want to mention (provide screenshot) of the error?
>>>>
>>>> On Sunday, 30 May 2021 at 09:14:22 UTC+5:30 sukhy.g...@gmail.com wrote:
>>>>
>>>>> Getting error while using using command python manage.py collectstatic
>>>>> Regarda
>>>>>
>>>>> On Sat, May 29, 2021, 21:23 Mehdi Ismail >>>>
>>>>>> python manage.py collectstatic
>>>>>>
>>>>>>
>>>>>> try that... and update
>>>>>> On Saturday, 29 May 2021 at 20:44:48 UTC+5:30 sukhy.g...@gmail.com
>>>>>> wrote:
>>>>>>
>>>>>>> Project Folder ➡️static ➡️css➡️style.css➡️
>>>>>>>
>>>>>>> On Sat, May 29, 2021, 19:16 Fabiano Leite >>>>>> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Where is located your 'css/style.css';
>>>>>>>> Em sábado, 29 de maio de 2021 às 10:04:50 UTC-3,
>>>>>>>> sukhy.g...@gmail.com escreveu:
>>>>>>>>
>>>>>>>>> No dear
>>>>>>>>>
>>>>>>>>> On Sat, May 29, 2021, 18:29 Chelsea Fan >>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Is it working now?
>>>>>>>>>>
>>>>>>>>>> On Sat, 29 May 2021, 3:40 pm lalit suthar, 
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> read this
>>>>>>>>>>> https://docs.djangoproject.com/en/2.2/intro/tutorial06/ and
>>>>>>>>>>> check how you are giving paths. Also after loading the page on your 
>>>>>>>>>>> browser
>>>>>>>>>>> go to "View Page Source" and click on the CSS file link and check 
>>>>>>>>>>> if the
>>>>>>>>>>> file is opening or not.
>>>>>>>>>>>
>>>>>>>>>>> On Saturday, 29 May 2021 at 17:57:21 UTC+5:30
>>>>>>>>>>> sukhy.g...@gmail.com wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Yes Sir,There was no mistake in code. Code problem was only in
>>>>>>>>>>>> mail content actually code was correct as instruction given by 
>>>>>>>>>>>> Aniket Sir
>>>>>>>>>>>>
>>>>>>>>>>>> Regards
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Sat, May 29, 2021, 13:14 lalit suthar >>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> have you checked Aniket's answer?
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Saturday, 29 May 2021 at 11:09:07 UTC+5:30
>>>>>>>>>>>>> sukhy.g...@gmail.com wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Done Sir, but not working
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Sat, May 29, 2021, 10:50 Venu Gopal >>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> In Firefox  Goto Preferences ---> Choose Privacy and
>>>>>>>>>>>>>>> Security ---> scroll down until you get cookies and site data 
>>>>>>>>>>>>>>> --> clear data
>>>>>>>>>>>>>>> Chrome  Goto Settings ---> Choose Privacy and Security
>>>>>>

Re: CSS not linking with HTML

2021-05-31 Thread Chelsea Fan
Good luck 

On Mon, 31 May 2021, 6:31 pm sukhy gill,  wrote:

> I deleted my project and will start project again from begining and then
> will let you know the progress.
> Regards
>
> On Sun, May 30, 2021, 16:48 Mehdi Ismail 
>> you want to mention (provide screenshot) of the error?
>>
>> On Sunday, 30 May 2021 at 09:14:22 UTC+5:30 sukhy.g...@gmail.com wrote:
>>
>>> Getting error while using using command python manage.py collectstatic
>>> Regarda
>>>
>>> On Sat, May 29, 2021, 21:23 Mehdi Ismail >>
>>>> python manage.py collectstatic
>>>>
>>>>
>>>> try that... and update
>>>> On Saturday, 29 May 2021 at 20:44:48 UTC+5:30 sukhy.g...@gmail.com
>>>> wrote:
>>>>
>>>>> Project Folder ➡️static ➡️css➡️style.css➡️
>>>>>
>>>>> On Sat, May 29, 2021, 19:16 Fabiano Leite >>>> wrote:
>>>>>
>>>>>>
>>>>>> Where is located your 'css/style.css';
>>>>>> Em sábado, 29 de maio de 2021 às 10:04:50 UTC-3, sukhy.g...@gmail.com
>>>>>> escreveu:
>>>>>>
>>>>>>> No dear
>>>>>>>
>>>>>>> On Sat, May 29, 2021, 18:29 Chelsea Fan >>>>>> wrote:
>>>>>>>
>>>>>>>> Is it working now?
>>>>>>>>
>>>>>>>> On Sat, 29 May 2021, 3:40 pm lalit suthar, 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> read this https://docs.djangoproject.com/en/2.2/intro/tutorial06/
>>>>>>>>> and check how you are giving paths. Also after loading the page on 
>>>>>>>>> your
>>>>>>>>> browser go to "View Page Source" and click on the CSS file link and 
>>>>>>>>> check
>>>>>>>>> if the file is opening or not.
>>>>>>>>>
>>>>>>>>> On Saturday, 29 May 2021 at 17:57:21 UTC+5:30 sukhy.g...@gmail.com
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Yes Sir,There was no mistake in code. Code problem was only in
>>>>>>>>>> mail content actually code was correct as instruction given by 
>>>>>>>>>> Aniket Sir
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sat, May 29, 2021, 13:14 lalit suthar >>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> have you checked Aniket's answer?
>>>>>>>>>>>
>>>>>>>>>>> On Saturday, 29 May 2021 at 11:09:07 UTC+5:30
>>>>>>>>>>> sukhy.g...@gmail.com wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Done Sir, but not working
>>>>>>>>>>>>
>>>>>>>>>>>> On Sat, May 29, 2021, 10:50 Venu Gopal >>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> In Firefox  Goto Preferences ---> Choose Privacy and
>>>>>>>>>>>>> Security ---> scroll down until you get cookies and site data --> 
>>>>>>>>>>>>> clear data
>>>>>>>>>>>>> Chrome  Goto Settings ---> Choose Privacy and Security
>>>>>>>>>>>>> ---> select cookies and other site data --> select see all 
>>>>>>>>>>>>> cookies and site
>>>>>>>>>>>>> data --> Remove all
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Sat, May 29, 2021 at 9:50 AM sukhy gill <
>>>>>>>>>>>>> sukhy.g...@gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> @Venu Gopal
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> No Sir, I don't know, how to do this.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> May I know Sir, how to do the sa

Re: CSS not linking with HTML

2021-05-29 Thread Chelsea Fan
try to change settings

STATIC_DIR = [
os.path.join(BASE_DIR,'static')
]

On Fri, May 28, 2021 at 9:38 PM sukhy gill  wrote:

> Dear Frnds
> I am unable to  link CSS with HTML
> HTML working but CSS not working inside the .html file with the help of
> LINK in  tag
>
> I am using thefollowings:-
> Setting.py -  STATICFILES_DIRS=[os.path.join(BASE_DIR, 'static'),]
> HTML- {% load static %}
>  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/3ca2aba0-a58f-4298-b248-16c51bdf90a6n%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/CAJwZnddGgtyEE%2BHRxPAf%2BHb1FTxUgN9%3DOCOV%2BdLB%3DF2KH77Jiw%40mail.gmail.com.


Re: CSS not linking with HTML

2021-05-29 Thread Chelsea Fan
Could you send me your settings.py and urls.py in project folder

On Sat, 29 May 2021, 4:04 pm sukhy gill,  wrote:

> No dear
>
> On Sat, May 29, 2021, 18:29 Chelsea Fan  wrote:
>
>> Is it working now?
>>
>> On Sat, 29 May 2021, 3:40 pm lalit suthar, 
>> wrote:
>>
>>> read this https://docs.djangoproject.com/en/2.2/intro/tutorial06/ and
>>> check how you are giving paths. Also after loading the page on your browser
>>> go to "View Page Source" and click on the CSS file link and check if the
>>> file is opening or not.
>>>
>>> On Saturday, 29 May 2021 at 17:57:21 UTC+5:30 sukhy.g...@gmail.com
>>> wrote:
>>>
>>>> Yes Sir,There was no mistake in code. Code problem was only in mail
>>>> content actually code was correct as instruction given by Aniket Sir
>>>>
>>>> Regards
>>>>
>>>>
>>>> On Sat, May 29, 2021, 13:14 lalit suthar >>>
>>>>> have you checked Aniket's answer?
>>>>>
>>>>> On Saturday, 29 May 2021 at 11:09:07 UTC+5:30 sukhy.g...@gmail.com
>>>>> wrote:
>>>>>
>>>>>> Done Sir, but not working
>>>>>>
>>>>>> On Sat, May 29, 2021, 10:50 Venu Gopal >>>>>
>>>>>>> In Firefox  Goto Preferences ---> Choose Privacy and Security
>>>>>>> ---> scroll down until you get cookies and site data --> clear data
>>>>>>> Chrome  Goto Settings ---> Choose Privacy and Security --->
>>>>>>> select cookies and other site data --> select see all cookies and site 
>>>>>>> data
>>>>>>> --> Remove all
>>>>>>>
>>>>>>> On Sat, May 29, 2021 at 9:50 AM sukhy gill 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> @Venu Gopal
>>>>>>>>
>>>>>>>> No Sir, I don't know, how to do this.
>>>>>>>>
>>>>>>>> May I know Sir, how to do the same?
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>
>>>>>>>> On Sat, May 29, 2021, 09:41 Venu Gopal >>>>>>>
>>>>>>>>> Hi, Have you tried deleting existing cache and cookies in the
>>>>>>>>> browser?
>>>>>>>>>
>>>>>>>>> On Sat, May 29, 2021 at 12:08 AM sukhy gill 
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Dear Frnds
>>>>>>>>>> I am unable to  link CSS with HTML
>>>>>>>>>> HTML working but CSS not working inside the .html file with the
>>>>>>>>>> help of LINK in  tag
>>>>>>>>>>
>>>>>>>>>> I am using thefollowings:-
>>>>>>>>>> Setting.py -  STATICFILES_DIRS=[os.path.join(BASE_DIR, 'static'),]
>>>>>>>>>> HTML- {% load static %}
>>>>>>>>>> >>>>>>>>> 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/3ca2aba0-a58f-4298-b248-16c51bdf90a6n%40googlegroups.com
>>>>>>>>>> <https://groups.google.com/d/msgid/django-users/3ca2aba0-a58f-4298-b248-16c51bdf90a6n%40googlegroups.com?utm_medium=email_source=footer>
>>>>>>>>>> .
>>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> You received this message because you are subscribed to a topic in
>>>>>>>>> the Google Groups "Django users" group.
>>>>>>>>> To unsubscribe from this topic, visit
>>>>>>>>> https://groups.google.com/d/topic/django-users/qGMoFXNAgww/unsubscribe
>>>>>>>>> .
>>>>>>>>> To unsubscribe from this group and all its topics, send an email
>>>>>>>>> to django-users...@googlegroups.com.
>>>>>>>>> To view this discussion on the web visit
>>>>>>>>> https://groups.google.com/d/msgid/dja

Re: CSS not linking with HTML

2021-05-29 Thread Chelsea Fan
Is it working now?

On Sat, 29 May 2021, 3:40 pm lalit suthar,  wrote:

> read this https://docs.djangoproject.com/en/2.2/intro/tutorial06/ and
> check how you are giving paths. Also after loading the page on your browser
> go to "View Page Source" and click on the CSS file link and check if the
> file is opening or not.
>
> On Saturday, 29 May 2021 at 17:57:21 UTC+5:30 sukhy.g...@gmail.com wrote:
>
>> Yes Sir,There was no mistake in code. Code problem was only in mail
>> content actually code was correct as instruction given by Aniket Sir
>>
>> Regards
>>
>>
>> On Sat, May 29, 2021, 13:14 lalit suthar >
>>> have you checked Aniket's answer?
>>>
>>> On Saturday, 29 May 2021 at 11:09:07 UTC+5:30 sukhy.g...@gmail.com
>>> wrote:
>>>
 Done Sir, but not working

 On Sat, May 29, 2021, 10:50 Venu Gopal >>>
> In Firefox  Goto Preferences ---> Choose Privacy and Security --->
> scroll down until you get cookies and site data --> clear data
> Chrome  Goto Settings ---> Choose Privacy and Security ---> select
> cookies and other site data --> select see all cookies and site data -->
> Remove all
>
> On Sat, May 29, 2021 at 9:50 AM sukhy gill 
> wrote:
>
>> @Venu Gopal
>>
>> No Sir, I don't know, how to do this.
>>
>> May I know Sir, how to do the same?
>>
>> Regards
>>
>> On Sat, May 29, 2021, 09:41 Venu Gopal >
>>> Hi, Have you tried deleting existing cache and cookies in the
>>> browser?
>>>
>>> On Sat, May 29, 2021 at 12:08 AM sukhy gill 
>>> wrote:
>>>
 Dear Frnds
 I am unable to  link CSS with HTML
 HTML working but CSS not working inside the .html file with the
 help of LINK in  tag

 I am using thefollowings:-
 Setting.py -  STATICFILES_DIRS=[os.path.join(BASE_DIR, 'static'),]
 HTML- {% load static %}
 >>> 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/3ca2aba0-a58f-4298-b248-16c51bdf90a6n%40googlegroups.com
 
 .

>>> --
>>> You received this message because you are subscribed to a topic in
>>> the Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/qGMoFXNAgww/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAOhYkiyqw8k5zCL1XZo9U%2BY9_JR57p55xf-%3DtFf6Fa4HVskPSw%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...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAJ8btZave0utnYTAcrxafKes6sUZ3%2BX%2B0v1EGs-pJSF1%2BT4qxw%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/qGMoFXNAgww/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> django-users...@googlegroups.com.
>
 To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOhYkiy80sPnGJ2uJPuJODECKv3UfQxATOit%2BwNZnr%3D%2BgiuojQ%40mail.gmail.com
> 
> .
>
 --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/qGMoFXNAgww/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/d9863d84-b712-4edd-bcd3-cb56e56d93e2n%40googlegroups.com
>>> 

Re: CSS not linking with HTML

2021-05-29 Thread Chelsea Fan
Style was wrong, you wrote syle, correct it

On Fri, 28 May 2021, 9:38 pm sukhy gill,  wrote:

> Dear Frnds
> I am unable to  link CSS with HTML
> HTML working but CSS not working inside the .html file with the help of
> LINK in  tag
>
> I am using thefollowings:-
> Setting.py -  STATICFILES_DIRS=[os.path.join(BASE_DIR, 'static'),]
> HTML- {% load static %}
>  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/3ca2aba0-a58f-4298-b248-16c51bdf90a6n%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/CAJwZndfuKosn0A9fuZFBhp09Y1DrHD%3DDWn-uoT1EywHrAQJPsg%40mail.gmail.com.


Re: Issue in the models.py

2021-05-16 Thread Chelsea Fan
try this

On Sun, May 16, 2021 at 11:40 AM Suraj Kumar <
surajsrivastava021...@gmail.com> wrote:

> Hi everyone,
>
> I having some issue in models.py
> While doing in the python shell in the pycharm terminal.
> So I write the code in the models.py
> Screenshot: Screenshot (312)-1.png
>
> Then I run  makemigration command and migrate command .
> Then write code in python shell
> from firstapp.models import Topic then I got issue as
> "django.core.exceptions.ImproperlyConfigured: Requested setting
> INSTALLED_APPS, but settings are not configured. You must either define the
> environment variable DJANGO_SETTINGS_MODULE or call settings.configure()
> before accessing settings."
>
> Please refer to the screenshot
> Screenshot: Screenshot (311)-1.png
>
> And here is the setting.py file
>
>
> Can anyone help me with this?
> I don't where did I mistake.
> So please help me out this issue.
>
> --
> 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/CACCwaoWP7z0%2BnmO-9M4v%2BKP37zP0hbg0BX2bXfqYCE16%3DkVChA%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/CAJwZndcQtaN-togwx2kg_Yjd4dWvzWpMMY_w%3DObK89s%2B_qmjnQ%40mail.gmail.com.
"""
Django settings for Blog project.

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

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

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

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
TEMPLATE_DIR = os.path.join(BASE_DIR, "templates")
STATIC_DIR = os.path.join(BASE_DIR, "static")

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

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '%_aaz+_m$-l$*f&15k@bw7@k37f9k9s!1icz_b6#ky8*%6&'

# 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',
'firstapp.apps.FirstappConfig',
'secondapp.apps.SecondappConfig',

]

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 = 'Blog.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [TEMPLATE_DIR, ],
'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 = 'Blog.wsgi.application'

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

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

# Password validation
# https://docs.djangoproject.com/en/3.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/3.1/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

# Static files (CSS, JavaScript, 

Re: Create a custom User model and Authenticate with it

2021-03-03 Thread Chelsea Fan
try this code, do not forget import authenticate (from django.contrib.auth
import authenticate, login)
modify this code

On Wed, Mar 3, 2021 at 8:01 PM Kasper Laudrup  wrote:

> On 03/03/2021 16.27, Devansh Soni wrote:
> > Hi,
> >
> > I'm currently working on a Django project in which I have to create a
> > User model with fields such as username, email, college, branch,
> > semester, password, etc. And use this model to authenticate a user with
> > an email and password.
> >
> > How can I achieve this? Or what are the ways to achieve this?
> >
>
> https://docs.djangoproject.com/en/3.1/topics/auth/customizing/
> https://testdriven.io/blog/django-custom-user-model/
>
> https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
> https://learndjango.com/tutorials/django-custom-user-model
>
>
> There's tons of documentation and examples for doing that.
>
> 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/6206bd8c-dec4-1362-75a4-34d370e1d5ea%40stacktrace.dk
> .
>

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


Re: Help needed

2021-02-23 Thread Chelsea Fan
Replace auto_now to auto_add_now


On Tue, 23 Feb 2021, 9:04 am neha bhurke,  wrote:

> Hello everyone,
>
> I am trying to select the custom date but
> datetime=models.DateTimeField(auto_now=True)
> is only taking current date 
> Please help me
>
> --
> 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/b1c53101-c7c6-403f-9b43-6713d7f66c07n%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/CAJwZndeAx%2BLoEKiVNogcE-M2FV-zjd97Vk2j2j6LaqZDE7xSoQ%40mail.gmail.com.


Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-09 Thread Chelsea Fan
I tried it, it works but it saves last file twice, for example if I upload
2 file it saves 3

On Sat, Jan 9, 2021 at 7:53 PM Joseph Wayodi  wrote:

> The Django docs show how to do this:
> <
> https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/#uploading-multiple-files
> >.
>
> On Thu, 7 Jan 2021 at 15:24, Chelsea Fan 
> wrote:
> >
> >
> > --
> > 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/CAJwZndca8SC7ifBzyW4ut%3DJXy-2E3RPPvq2tHrpCyxyqABQnzw%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/CAOXm%2Bp8tF1Zpt1gmFH%3DTc6fin3ijf%2B3kDrc9j_yRR2ZBbxVfSA%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/CAJwZndefeU5b4a9J_JjyMpTHyr-dwQ5GCs-7eJf0Kvf3qdjUFQ%40mail.gmail.com.


Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-08 Thread Chelsea Fan
server rendering

On Fri, Jan 8, 2021 at 5:23 PM Satyajit Barik 
wrote:

> do you use API or server side rendering method?
>
> On Fri, Jan 8, 2021 at 1:34 PM Chelsea Fan 
> wrote:
>
>> yes I am using FileField and trying upload and to save it
>>
>>
>> On Thu, Jan 7, 2021 at 4:09 PM Steven Mapes 
>> wrote:
>>
>>> Within Django Admin or somewhere else?
>>> Are you using FileFields and trying to save to the models or are you
>>> just trying to POST multiple files?
>>>
>>> On Thursday, 7 January 2021 at 12:25:10 UTC allaberdi...@gmail.com
>>> wrote:
>>>
>>>> --
>>> 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/ba3a4c6a-0788-457f-8e7d-576d612a7f61n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/ba3a4c6a-0788-457f-8e7d-576d612a7f61n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAJwZnde38EREC%3DhrYAfGLP4QKvPD-OwC_aJb6W1-o1n6GTDrBg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJwZnde38EREC%3DhrYAfGLP4QKvPD-OwC_aJb6W1-o1n6GTDrBg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CANd-%2BoCvYOnwxPj7rM5kdZWQtERSufab7jTwgBxqgbD2-j0%2BVw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANd-%2BoCvYOnwxPj7rM5kdZWQtERSufab7jTwgBxqgbD2-j0%2BVw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJwZndfoNtZbsHrqvy7R1tG2Q8mwK8BtCushL2b_5M0c%2B%3DMTng%40mail.gmail.com.


Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-08 Thread Chelsea Fan
yes I am using FileField and trying upload and to save it


On Thu, Jan 7, 2021 at 4:09 PM Steven Mapes  wrote:

> Within Django Admin or somewhere else?
> Are you using FileFields and trying to save to the models or are you just
> trying to POST multiple files?
>
> On Thursday, 7 January 2021 at 12:25:10 UTC allaberdi...@gmail.com wrote:
>
>> --
> 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/ba3a4c6a-0788-457f-8e7d-576d612a7f61n%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/CAJwZnde38EREC%3DhrYAfGLP4QKvPD-OwC_aJb6W1-o1n6GTDrBg%40mail.gmail.com.


hello guys, how can I upload multiple images using single button? help me please

2021-01-07 Thread Chelsea Fan


-- 
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/CAJwZndca8SC7ifBzyW4ut%3DJXy-2E3RPPvq2tHrpCyxyqABQnzw%40mail.gmail.com.


Re: Ongoing project

2020-12-17 Thread Chelsea Fan
I am interested in this project too

On Thu, 17 Dec 2020, 2:42 pm Peter Kirieny,  wrote:

> Hello team
> I have a project in django
> (developing an ecommerce website with some innovations)
>
> Using pycharm and python, am looking for a partner here
>
> Am a Kenyan, in Nairobi
>
> If interested please inbox for more information
>
> --
> 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/CAL8t8eovVqpPJGfTAE9Q_%3DuPdazu3xxF-79CQxmcf7MNNAL6YA%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/CAJwZnde0c7vuYAWdxyCaC_JK9uPcLarvpT3R31frW88GnA0udQ%40mail.gmail.com.


Re: hello guys, help me please, I could not associate username to a post

2020-12-15 Thread Chelsea Fan
Thanks bro,

On Wed, 16 Dec 2020, 7:27 am Ronald Kamulegeya, <
ronald.kamulegeya.2...@gmail.com> wrote:

> Hi, use
> Obj.save()
> Instead of
> Form.save()
>
> On Tue, Dec 15, 2020, 21:25 Chelsea Fan 
> wrote:
>
>> [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/CAJwZnddXepqo9Ea73GPZYTt4CK9V5tz5V8sS1xU-WVqeYg8qMQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJwZnddXepqo9Ea73GPZYTt4CK9V5tz5V8sS1xU-WVqeYg8qMQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CALV1ZJ3wYMmK_Kf-3pQtJFArqs5p4Mqb8TYWZwcG5uWTy59JDA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALV1ZJ3wYMmK_Kf-3pQtJFArqs5p4Mqb8TYWZwcG5uWTy59JDA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJwZnde7eFBqKoS1xmTAN-_Y7%3DzUcErCo6ZhiM2c3gAqYBJpAg%40mail.gmail.com.


hello guys, help me please, I could not associate username to a post

2020-12-15 Thread Chelsea Fan
[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/CAJwZnddXepqo9Ea73GPZYTt4CK9V5tz5V8sS1xU-WVqeYg8qMQ%40mail.gmail.com.


Re: django staticfiles problem

2020-10-15 Thread Chelsea Fan
thanks guys, I did it ))

On Thu, Oct 15, 2020 at 9:55 PM Luis Zárate  wrote:

> You have a problem here
> {% static '/css/base.css' %}
>
> the correct is
> {% static 'css/base.css' %}
>
> Also is a bad idea set media folder in static.
> take a look here https://docs.djangoproject.com/en/3.1/howto/static-files/
>
>
>
>
> El mié., 14 oct. 2020 a las 23:05, Farai M ()
> escribió:
>
>> Why have the media url if it's point to the same dir as static .Your can
>> just specific it's separately in it's own dir as /media/ and have /static/
>> .You are also missing a static root there .
>>
>> On Wed, Oct 14, 2020, 5:05 PM Chelsea Fan 
>> wrote:
>>
>>> MEDIA_URL = '/images/'
>>> MEDIA_ROOT = BASE_DIR / 'static/images'
>>>
>>>
>>> On Wed, Oct 14, 2020 at 2:12 PM Anh Nguyen  wrote:
>>>
>>>> where is your STATIC_ROOT ?
>>>>
>>>>
>>>> On Wed, Oct 14, 2020 at 5:43 PM Chelsea Fan <
>>>> allaberdi16yazha...@gmail.com> wrote:
>>>>
>>>>> hello everyone, I have an issue, I can't connect css style to my
>>>>> template, but I can upload images and see it , here is my code,  please
>>>>> help me, thanks  for attentions !!!
>>>>>
>>>>> STATIC_URL = '/static/'
>>>>> STATICFILES_DIR = [BASE_DIR / 'static']
>>>>>
>>>>> {% load static %}
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>>
>>>>> [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/CAJwZndd_SYaToM%3D6h1KL-WmXs7eR3e0sgwHqVPPFwo%3Dx2HW5xg%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAJwZndd_SYaToM%3D6h1KL-WmXs7eR3e0sgwHqVPPFwo%3Dx2HW5xg%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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/CAKaoNbTN2-hiy71RS8H8i_wc9XeQqJBOLkR%3DOjEJxocorO1FRw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAKaoNbTN2-hiy71RS8H8i_wc9XeQqJBOLkR%3DOjEJxocorO1FRw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAJwZnde%3D8xOePMK5L%2B9YvXtnW_U%2BHCpX2VVq5R%2BmQDZz39kBrQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAJwZnde%3D8xOePMK5L%2B9YvXtnW_U%2BHCpX2VVq5R%2BmQDZz39kBrQ%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAMeub5PM26mY%2BDpB-xK0NorWxXOE1qahL-zf2WJrFirqeGL73A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMeub5PM26mY%2BDpB-xK0NorWxXOE1qahL-zf2WJrFirqeGL73A%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> "La utopía sirve para caminar" Fernando Birri
>
>
> --
> 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/CAG%2B5VyN%3DaboOu1c4h9OuaYac1UJeRkrSe7nRXrSHY65EZfuYAA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAG%2B5VyN%3DaboOu1c4h9OuaYac1UJeRkrSe7nRXrSHY65EZfuYAA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

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


Re: django staticfiles problem

2020-10-14 Thread Chelsea Fan
MEDIA_URL = '/images/'
MEDIA_ROOT = BASE_DIR / 'static/images'


On Wed, Oct 14, 2020 at 2:12 PM Anh Nguyen  wrote:

> where is your STATIC_ROOT ?
>
>
> On Wed, Oct 14, 2020 at 5:43 PM Chelsea Fan 
> wrote:
>
>> hello everyone, I have an issue, I can't connect css style to my
>> template, but I can upload images and see it , here is my code,  please
>> help me, thanks  for attentions !!!
>>
>> STATIC_URL = '/static/'
>> STATICFILES_DIR = [BASE_DIR / 'static']
>>
>> {% load static %}
>> 
>> 
>> 
>> 
>> 
>>
>> [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/CAJwZndd_SYaToM%3D6h1KL-WmXs7eR3e0sgwHqVPPFwo%3Dx2HW5xg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJwZndd_SYaToM%3D6h1KL-WmXs7eR3e0sgwHqVPPFwo%3Dx2HW5xg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAKaoNbTN2-hiy71RS8H8i_wc9XeQqJBOLkR%3DOjEJxocorO1FRw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKaoNbTN2-hiy71RS8H8i_wc9XeQqJBOLkR%3DOjEJxocorO1FRw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJwZnde%3D8xOePMK5L%2B9YvXtnW_U%2BHCpX2VVq5R%2BmQDZz39kBrQ%40mail.gmail.com.


django staticfiles problem

2020-10-14 Thread Chelsea Fan
hello everyone, I have an issue, I can't connect css style to my template,
but I can upload images and see it , here is my code,  please help me,
thanks  for attentions !!!

STATIC_URL = '/static/'
STATICFILES_DIR = [BASE_DIR / 'static']

{% load static %}






[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/CAJwZndd_SYaToM%3D6h1KL-WmXs7eR3e0sgwHqVPPFwo%3Dx2HW5xg%40mail.gmail.com.


Re: guys help me please, I cannot upload images from django form,

2020-08-29 Thread Chelsea Fan
ok bro I'll try it, thanks for now

On Sat, Aug 29, 2020 at 7:53 PM Jonathan Villavicencio <
codejonvi...@gmail.com> wrote:

> Hello!
> in the class Posts in the field "image" add upload_to=upload_path for
> example:
> image = models.ImageField(blank=True, null=True, verbose_name='surat',
> upload_to=upload_path)
>
> upload_path is a method
> write it before of the class definition
> def upload_path(instance, filename):
> return '/'.join([instance.image, filename])
>
> El sáb., 29 de ago. de 2020 a la(s) 11:16, allaberdi...@gmail.com (
> allaberdi16yazha...@gmail.com) escribió:
>
>> I can upload images from django admin panel but cannot to do same thing
>> with django form ,  it saves any text but did not save images only,  anyone
>> help me  please
>> this is my code:
>>
>> models.py:
>> class Posts(models.Model):
>>
>> Ahal = 'Ahal'
>> Balkan = 'Balkan'
>> Dasoguz = 'Dasoguz'
>> Lebap = 'Lebap'
>> Mary = 'Mary'
>>
>>
>> CHOOSE_REGION = {
>> (Ahal,'Ahal'),
>> (Balkan,'Balkan'),
>> (Dasoguz,'Dasoguz'),
>> (Lebap,'Lebap'),
>> (Mary,'Mary')
>> }
>>
>>
>> name = models.CharField(max_length=30, blank=False, verbose_name='Ady')
>> image = models.ImageField(blank=True, null=True, verbose_name='surat')
>> text = models.TextField(verbose_name='gosmaça maglumat')
>> price = models.FloatField(verbose_name='bahasy')
>> region = models.CharField(max_length=30, choices=CHOOSE_REGION,
>> blank=False, verbose_name='welaýat')
>> district = models.CharField(max_length=30, blank=False,
>> verbose_name='etrab')
>> user = models.ForeignKey(User, on_delete=models.CASCADE,
>> verbose_name='eýesi')
>> phone = models.CharField(max_length=50, blank=False,
>> verbose_name='telefon belgisi')
>> published = models.DateTimeField(auto_now=True, verbose_name='satuwa
>> çykan guni')
>>
>>
>>
>> forms.py:
>> class PostForm(forms.ModelForm):
>> class Meta:
>> model = Posts
>> fields =
>> ['name','image','text','price','region','district','user','phone']
>>
>>
>> views.py:
>> def add_post(request):
>> form = PostForm(request.POST or None)
>> if form.is_valid():
>> form.save()
>> template = 'add_post.html'
>> context = {'form':form}
>> return render(request,template,context)
>>
>> settings.py:
>>
>> STATIC_URL = '/static/'
>> STATICFILES_DIR = [Path(BASE_DIR,'static')]
>>
>> MEDIA_URL = '/media/'
>> MEDIA_ROOT = Path(BASE_DIR,'media')
>>
>>
>> urls.py:
>>
>> from django.conf.urls.static import static
>> from django.conf import settings
>>
>> urlpatterns = [
>> path('admin/', admin.site.urls),
>> path('', include('posts.urls')),
>> ]
>>
>> urlpatterns += static(settings.MEDIA_URL,
>> document_root=settings.MEDIA_ROOT)
>>
>>
>>
>> html form tag:
>> {% extends 'index.html' %}
>>
>> {% load static %}
>>
>> {% block content %}
>>
>> 
>> {% csrf_token %}
>> {{form.media}}
>> {{form.as_p}}
>> 
>> 
>>
>> {% endblock %}
>>
>> --
>> 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/ad47578f-64a8-40b5-b72b-f3eebb668dben%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/CAAEkprV7PmRfkHyMD4VS%3DiN6S%2BjGUwaoaWrkxQ2fhWWXOoHc9Q%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/CAJwZnddD5EHO%3DLADx-wGF3s_HopVOi31Wqjot3UgbSspUR-9yw%40mail.gmail.com.