Re: Image Uploaded by Ckeditor using Django to AWS S3 gone after certain amount of time

2020-09-09 Thread hans alexander
I tried to put AWS_QUERYSTRING_AUTH = False AWS_S3_BUCKET_AUTH = False on settings.py, it didn't work. Thanks. On Wed, Sep 9, 2020 at 3:16 PM hans alexander wrote: > I see on this link >> > > > https://stackoverflow.com/questions/63096379/django-ckeditor-upload-image-

Re: Image Uploaded by Ckeditor using Django to AWS S3 gone after certain amount of time

2020-09-09 Thread hans alexander
> > I see on this link > https://stackoverflow.com/questions/63096379/django-ckeditor-upload-image-link-expires-after-some-hours Has no solution yet. He got the same problem as me. I'm currently still trying to find solution, tinkering aws s3 settings to set the expired time. Any suggestions

Re: Image Uploaded by Ckeditor using Django to AWS S3 gone after certain amount of time

2020-09-09 Thread hans alexander
I checked the file on my bucket, it's there. But somehow the link is not working. On Wed, Sep 9, 2020 at 1:13 PM hans alexander wrote: > I don't know what happened. > Need solution for this. > > [image: image.png] > [image: image.png] > > Any solutions would be appreciat

Image Uploaded by Ckeditor using Django to AWS S3 gone after certain amount of time

2020-09-09 Thread hans alexander
I don't know what happened. Need solution for this. [image: image.png] [image: image.png] Any solutions would be appreciated. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
Thanks guys.. Already solved it. I guess the main reason of the problem is that I'm using Pycharm Community Edition. So the alert error not accurate. Anyway I tried to py manage.py with some alerts, and worked. for example: [image: image.png] I left it like that. And sitemap still works. But now

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
I followed a tutorial for creating django sitemap, but still got problems along the way. I've seen some videos, but didn't work. Do you have any references for easy way creating django sitemap for blog posts? Sure it would help. Thanks On Wed, Sep 9, 2020 at 12:02 AM coolguy wrote: > Not

Re:

2020-09-08 Thread hans alexander
t; > On Tue, Sep 8, 2020 at 4:14 PM hans alexander wrote: > >> I got errors when installing Django Channels. >> I'm using Python 3.8.5, Django 3.1 >> >> Installing using : >> pip install channels >> >> I got error like this: >> >> Installing

[no subject]

2020-09-08 Thread hans alexander
I got errors when installing Django Channels. I'm using Python 3.8.5, Django 3.1 Installing using : pip install channels I got error like this: Installing collected packages: twisted, daphne, channels Running setup.py install for twisted ... error ERROR: Command errored out with exit

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
Sorry, point no 1 needs to be revised.. 1. In urls.py, I want to import BlogPostsSitemap -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
my structure is like this: my_project blog sitemaps.py my_project urls.py Inside sitemaps.py : from django.contrib.sitemaps import Sitemap from .models import * class

Re: Integrating User Accounts into Django Website

2020-09-05 Thread hans alexander
e > up and running, the admin page works, but I do not know how to make a login > page for visitors of the site. > > On Sat, Sep 5, 2020 at 9:56 AM hans alexander wrote: > >> What do you mean by Integrating User? Django actually has built in >> features for user accounts.

Re: Integrating User Accounts into Django Website

2020-09-05 Thread hans alexander
What do you mean by Integrating User? Django actually has built in features for user accounts. On Sat, Sep 5, 2020 at 8:40 PM Lightning Bit < thelegendofearthretu...@gmail.com> wrote: > Hi all, > > Does anyone have experience with integrating user accounts into a Django > Website? Are there any

Re: Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread hans alexander
You can use CKEditor 5 for creating content. Check this https://jawaban.online/scope/outlink/6025/django-ckeditor-pypi/ On Sat, Sep 5, 2020 at 6:46 PM sourav chakraborty wrote: > Yes, but please suggest what should be the type of field then? As I want > to use an editor to write content as

Re: Help. if i runserver I get this error

2020-09-05 Thread hans alexander
You need to set your index path in urls.py like this: path(' ', , ) On Fri, Sep 4, 2020 at 11:49 PM Boi Deekay wrote: > Page not found (404)Request Method: > GETRequest URL: > http://127.0.0.1:8000/ > > Using the URLconf defined in myFirstPy.urls, Django tried these URL > patterns, in this

Re: How to pass a set of objects in between two views?

2020-08-24 Thread hans alexander
Can you share the views.py that you wrote? Actually If the page for random set of questions is same for User NOT Logged In and User Logged In, the data you called from database will still showing up. On Mon, Aug 24, 2020 at 9:19 PM vipul shinde wrote: > > I'm building a quiz app in which I'm

Re: data too long in a CharField column

2020-08-21 Thread hans alexander
I changed my database from mysql to postgresql. But when I tried saving data on forms, I got this error " value too long for type character varying(50)" I don't know why, because when I was using MYSQL, I didn't get any error. Can someone help me with this Postgresql? On Monday, May 4, 2009 at