E Commerce Website Assistance

2020-10-09 Thread Farai M
Hello all

I am doing an ecommerce  app can any one who have done a commercial project
assist with maybe documentation and architecture and packages l can use.

Thanks in advance

DM me on +263779046006

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMeub5PeaY_xeLntMo0K2%3DMQwDFsydb5wB685u%3D6te3r-Rqqwg%40mail.gmail.com.


Re: Regarding OTP based login- Django

2020-10-09 Thread Gabriel Araya Garcia
Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos


ja,ja,ja,...gracias Carlos

El mar., 29 sept. 2020 a las 17:18, carlos ()
escribió:

> Gabriel
> one-time password
>
> On Tue, Sep 29, 2020 at 12:34 PM Gabriel Araya Garcia <
> gabrielaraya2...@gmail.com> wrote:
>
>> Que es eso de OTP?,...que significan esas siglas ?
>>
>> Gabriel Araya Garcia
>> GMI - Desarrollo de Sistemas Informáticos
>>
>>
>>
>>
>> El vie., 25 sept. 2020 a las 10:55, Rahul Gour ()
>> escribió:
>>
>>> Hello,
>>>
>>> TIA.
>>>
>>> I am new in django, can anyone help me for OTP based login in my app.
>>>
>>> I am working on a ecommerce app and want to login otp based login and
>>> dont know or getting much on google that how to integrate phone number with
>>> django user model or want to use custom user model.
>>>
>>>
>>> Regards,
>>> Rahul Gour
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAFi6BNX1qfhDF1zqY7xt4aD%2B7F7mgNXmApxZ%2BquigQYxSgsinw%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/CAKVvSDCPEc%2BWqDD4Yk2o9_o9_F9uFT_8TpmheiVMJ_3O%3DTNuPw%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> att.
> Carlos Rocha
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send 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-7rO3eAK1gOAm5KFOxG9F%3DXxgBt9kmW5zd0DVTNzxXV4PjSg%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/CAKVvSDBk%3DP%2BKPEQeoDxMVK0YTdmy7AxbjosSDZue9PoiiFcipA%40mail.gmail.com.


Django multiple database tests won't start

2020-10-09 Thread Alexander Shalin

Hello forum,

I maintain one application based on Django. It controls Postgresql 
database. Tests cover classes and methods. Everything had been working fine 
and dandy.

I added another Postgresql database and created model classes for its 
tables. No problems with access to two databases. I didn't create any tests 
for new classes and methods.

When I try to launch tests psycopg2 won't find the test database it just 
created moments ago.

I'd appreciate any help.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/26762884-1f31-4c46-a57f-2ac7d5ad1991n%40googlegroups.com.
python app/manage.py test

nosetests --verbosity=1
Creating test database for alias 'default'...
Got an error creating the test database: database "test_db" already exists

Type 'yes' if you would like to try deleting the test database 'test_db', or 
'no' to cancel: yes
Destroying old test database for alias 'default'...
Creating test database for alias 'otrs_ro'...
Traceback (most recent call last):
  File 
"/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 
217, in ensure_connection
self.connect()
  File 
"/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 
195, in connect
self.connection = self.get_new_connection(conn_params)
  File 
"/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", 
line 178, in get_new_connection
connection = Database.connect(**conn_params)
  File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, 
in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: ERROR:  no such database: test_db
ERROR:  no such database: test_db


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "app/manage.py", line 22, in 
execute_from_command_line(sys.argv)
  File 
"/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", 
line 381, in execute_from_command_line
utility.execute()
  File 
"/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", 
line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/local/lib/python3.7/site-packages/django/core/management/commands/test.py",
 line 23, in run_from_argv
super().run_from_argv(argv)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", 
line 323, in run_from_argv
self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", 
line 364, in execute
output = self.handle(*args, **options)
  File 
"/usr/local/lib/python3.7/site-packages/django/core/management/commands/test.py",
 line 53, in handle
failures = test_runner.run_tests(test_labels)
  File "/usr/local/lib/python3.7/site-packages/django_nose/runner.py", line 
308, in run_tests
result = self.run_suite(nose_argv)
  File "/usr/local/lib/python3.7/site-packages/django_nose/runner.py", line 
245, in run_suite
addplugins=plugins_to_add)
  File "/usr/local/lib/python3.7/site-packages/nose/core.py", line 121, in 
__init__
**extra_args)
  File "/usr/local/lib/python3.7/unittest/main.py", line 101, in __init__
self.runTests()
  File "/usr/local/lib/python3.7/site-packages/nose/core.py", line 207, in 
runTests
result = self.testRunner.run(self.test)
  File "/usr/local/lib/python3.7/site-packages/nose/core.py", line 50, in run
wrapper = self.config.plugins.prepareTest(test)
  File "/usr/local/lib/python3.7/site-packages/nose/plugins/manager.py", line 
99, in __call__
return self.call(*arg, **kw)
  File "/usr/local/lib/python3.7/site-packages/nose/plugins/manager.py", line 
167, in simple
result = meth(*arg, **kw)
  File "/usr/local/lib/python3.7/site-packages/django_nose/plugin.py", line 82, 
in prepareTest
self.old_names = self.runner.setup_databases()
  File "/usr/local/lib/python3.7/site-packages/django_nose/runner.py", line 
495, in setup_databases
return super(NoseTestSuiteRunner, self).setup_databases()
  File "/usr/local/lib/python3.7/site-packages/django/test/runner.py", line 
554, in setup_databases
self.parallel, **kwargs
  File "/usr/local/lib/python3.7/site-packages/django/test/utils.py", line 174, 
in setup_databases
serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
  File 
"/usr/local/lib/python3.7/site-packages/django/db/backends/base/creation.py", 
line 58, in create_test_db
self._create_test_db(verbosity, autoclobber, keepdb)
  File 
"/usr/local/lib/python3.7/site-packages/django/db/backends/base/creation.py", 
line 168, in _create_test_db
with self._nodb_connection.cursor() as 

Re: How to use Topaz T-S460-HSB-R USB Electronic Signature Capture Pad in a Django Project

2020-10-09 Thread Kasper Laudrup

Hi Francis,

On 09/10/2020 16.32, Francis F. Massaquoi, Jr. wrote:
I want to use Topaz Electronic Signature Capture Pad in my Django Web 
Application is it possible? Is there a way to integrate this signature 
in my Web Application I'm using https://github.com/szimek/signature_pad.




I don't have any experience with it, but seems like all you need to do 
is somehow create a form that can post the contents of the data uri 
generated by the javascript code you've linked to.


I've never worked with data uris, but from what I could read it seems 
like in the end it's just base64 encoded data that you should be able to 
simply POST as a field in a standard HTML form.


Hope this helps a bit. Seems like it should be fairly simple to achieve, 
even if I've not been able to find any examples on exactly how.


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/eeeacc7b-de14-b59a-2160-815cbab8b707%40stacktrace.dk.


Re: Need help to create web API for the listing of news.

2020-10-09 Thread Kasper Laudrup

Hi Viplay

On 09/10/2020 16.26, Viplav Dube wrote:

Dear all,
Need to write a small scraper for JSON links and get the news on one API 
call for current date and store it in the table in this format (Id, 
Date, Title, Details, New From (CNN, Times, etc.) and URL of News).

News can be searched via any keyword in title or in detail field.



You can probably use the requests library 
(https://requests.readthedocs.io/en/master/) for the scraping.


Not really sure if you mean you want to call an existing API, in which 
case just using requests should be fine, or you actually need to parse 
HTML and find links ("scraping") in which case you probably need to 
combine it with beatiful soup 
(https://www.crummy.com/software/BeautifulSoup/bs4/doc/).


Shouldn't be a problem to create a database model for storing that 
information using standard Django models and searching shouldn't be much 
of a problem either:


https://docs.djangoproject.com/en/3.1/topics/db/search/

Hope that helps a bit.

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/bb232ec7-672e-633f-1fb6-79c608693870%40stacktrace.dk.


Re: template loading error

2020-10-09 Thread Kasper Laudrup

On 09/10/2020 19.27, MC CREATIONS wrote:
i have problem that am creating a Django project with outside template 
.but now the problem is that template is not fully leading .only load 
partial template, here all the static file are correct but no picture 
and images are not display.how can i solve it .help me




It might just be me, but I have absolutely no idea what you are trying 
to say here.


What's an outside template?

What does it "only load partial template" mean?

How can the static files be correct, if they don't work (I suppose 
that's what yo mean by "no picture and images are not display").


Maybe you could show the relevant parts of the code that you have issues 
with along with a description on what you are trying to achieve and any 
potential error messages?


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/4ea8378f-db52-d397-38d9-ce087e11ddf6%40stacktrace.dk.


File Upload with additional Parameters

2020-10-09 Thread Noel Simela
Hi guys,

Any suggestions on the best approach to achieve the below with Django's
upload handlers. I was reviewing documentation at
https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/

On upload I want to be able to read the contents of the document as per
below.

Read: –File Name, Author’s Name, Index , count  number pages in the
document. And populate fields on django template automatically

N.B I am not looking for code, just insight or point me in the right
direction.

Thank you kindly.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGBhr7Zkukurzvb%3DZ3JmawO3-AZs%3DjtHjEMgWwtCNn0Ln1fEhQ%40mail.gmail.com.


template loading error

2020-10-09 Thread MC CREATIONS
i have problem that am creating a Django project with outside template .but 
now the problem is that template is not fully leading .only load partial 
template, here all the static file are correct but no picture and images 
are not display.how can i solve it .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/cf5e3e67-a69b-4bba-9a6f-add192c50d35n%40googlegroups.com.


Need help to create web API for the listing of news.

2020-10-09 Thread Viplav Dube
Dear all,
Need to write a small scraper for JSON links and get the news on one API 
call for current date and store it in the table in this format (Id, Date, 
Title, Details, New From (CNN, Times, etc.) and URL of News).
News can be searched via any keyword in title or in detail field. 

Please share any documents or codes for better reference to build a code.
Thank You in Advance.
Viplav Dube 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/159e25cf-da60-47c4-8f6e-9ee0089c5379n%40googlegroups.com.


How to use Topaz T-S460-HSB-R USB Electronic Signature Capture Pad in a Django Project

2020-10-09 Thread Francis F. Massaquoi, Jr.
Hi, 

I want to use Topaz Electronic Signature Capture Pad in my Django Web 
Application is it possible? Is there a way to integrate this signature in 
my Web Application I'm using https://github.com/szimek/signature_pad.

Below is a photo of the signature pad.
[image: 61b9noIw2mL._AC_SL1274_.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/054a19d6-2cee-438c-ab65-10f4a702155cn%40googlegroups.com.


Re: multiple database

2020-10-09 Thread Chetan Ganji
https://docs.djangoproject.com/en/3.1/topics/db/multi-db/


Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Fri, Oct 9, 2020 at 6:41 PM Khaleel Ahmed H. M. Shariff <
khaleelahme...@gmail.com> wrote:

> Hi Suhaib,
> May Peace, Blessings & Mercy of Almighty God be on you!
>
> Kindly throw some light on what database you are using. Are you using
> SQLite (default available with Python) or any other RDBMS like
> MySQL/Oracle???
> Awaiting your reply.
> Thanks in advance.
>
>
> God Bless You!
> God Bless India!!
> --
>
> Love & Regards
> Dr. (h.c.) Khaleel Ahmed H. M.
>
> Managing Director, Tanzanite Realty India Private Limited
>
> ---
>
> Human Life is Precious
> Koran Surah Ma'idah Chapter 5 Verse 32:
> If anyone killed a person, not in retaliation of murder, or (and) to
> spread mischief in the land - it would be as if he killed all mankind, & if
> anyone saved a life, it would be as if he saved the life of all mankind.
>
>
> On Fri, Oct 9, 2020 at 6:05 PM Suhaib Ali  wrote:
>
>> Hello everyone,
>>
>> i have some doubt regarding django database. i want to create multiple
>> database according to the user wish. for example i want to create a company
>> so each and every company needs their own database while creating the
>> company
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/cff6452c-e9fd-4126-9ef7-51ea4083c6f6n%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/CAMjBbiBL91PMWVAmLWZoPSJSiD5v%2B8WzMB9A83UvWOqy5RwAhw%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/CAMKMUjuZRmcyxsrA%3D%3DUZAh5qWOrP8VMvpZNQdwhKtVY3wBHt5w%40mail.gmail.com.


Re: multiple database

2020-10-09 Thread Khaleel Ahmed H. M. Shariff
Hi Suhaib,
May Peace, Blessings & Mercy of Almighty God be on you!

Kindly throw some light on what database you are using. Are you using
SQLite (default available with Python) or any other RDBMS like
MySQL/Oracle???
Awaiting your reply.
Thanks in advance.


God Bless You!
God Bless India!!
--

Love & Regards
Dr. (h.c.) Khaleel Ahmed H. M.

Managing Director, Tanzanite Realty India Private Limited

---

Human Life is Precious
Koran Surah Ma'idah Chapter 5 Verse 32:
If anyone killed a person, not in retaliation of murder, or (and) to spread
mischief in the land - it would be as if he killed all mankind, & if anyone
saved a life, it would be as if he saved the life of all mankind.


On Fri, Oct 9, 2020 at 6:05 PM Suhaib Ali  wrote:

> Hello everyone,
>
> i have some doubt regarding django database. i want to create multiple
> database according to the user wish. for example i want to create a company
> so each and every company needs their own database while creating the
> company
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cff6452c-e9fd-4126-9ef7-51ea4083c6f6n%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/CAMjBbiBL91PMWVAmLWZoPSJSiD5v%2B8WzMB9A83UvWOqy5RwAhw%40mail.gmail.com.


Re: multiple database

2020-10-09 Thread Kasper Laudrup

On 09/10/2020 09.28, Suhaib Ali wrote:

Hello everyone,

i have some doubt regarding django database. i want to create multiple 
database according to the user wish. for example i want to create a 
company so each and every company needs their own database while 
creating the company




https://docs.djangoproject.com/en/3.1/topics/db/multi-db/

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bc457326-d13b-633f-cf51-3bc751255907%40stacktrace.dk.


Re: HELP

2020-10-09 Thread Khaleel Ahmed H. M. Shariff
HI Omar,
May Peace, Blessings & Mercy of Almighty God be on you!

I hope you are comfortable with Python?

If yes, the latest official version of Django is 3.1.2
Kindly execute "*pip  install django*"
In case you are on windows & it is giving an error
*"'pip' is not recognized as an internal or external command,*
*operable program or batch file."*

Execute "*python -m pip install django*"

If anything is not working, let us know we are here to hand hold you.
Best of luck. Let us know your experience.
Thanks in advance.


God Bless You!
God Bless India!!
--

Love & Regards
Dr. (h.c.) Khaleel Ahmed H. M.

Managing Director, Tanzanite Realty India Private Limited

---

Human Life is Precious
Koran Surah Ma'idah Chapter 5 Verse 32:
If anyone killed a person, not in retaliation of murder, or (and) to spread
mischief in the land - it would be as if he killed all mankind, & if anyone
saved a life, it would be as if he saved the life of all mankind.


On Fri, Oct 9, 2020 at 6:05 PM Nyirurugo Omar 
wrote:

> please I'm Django beginner and  i really want to start using Django please
> i need you help.
>
> please any one to guide me please.
>
> Thank yu
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1c1aa31c-1173-4c20-98d3-1fbc5cf27754n%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/CAMjBbiAOTxC88q%3DLUh0%2B49VtqTvQQ6knxWcKDcZFkX%2BVVCcYqw%40mail.gmail.com.


HELP

2020-10-09 Thread Nyirurugo Omar
please I'm Django beginner and  i really want to start using Django please 
i need you help.

please any one to guide me please.

Thank yu  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1c1aa31c-1173-4c20-98d3-1fbc5cf27754n%40googlegroups.com.


m

2020-10-09 Thread Suhaib Ali
hello

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3809b416-c744-453a-a1f2-d322c4d922den%40googlegroups.com.


multiple database

2020-10-09 Thread Suhaib Ali
Hello everyone,

i have some doubt regarding django database. i want to create multiple 
database according to the user wish. for example i want to create a company 
so each and every company needs their own database while creating the 
company

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cff6452c-e9fd-4126-9ef7-51ea4083c6f6n%40googlegroups.com.


Re: Pasting images versus uploading

2020-10-09 Thread Mike Dewhirst
On 9/10/2020 11:55 am, Ryan Nowakowski wrote:
> Maybe you could swap out the default ImageField widget for
> TinyMCE-lite HTMLField? Security-wise you probably want to sanitize
> the input from HTMLField in Django to make sure only img tags are allowed.

With the image pasted in, viewing the browser page source it is
represented as just a string although it does contain ...

... src=data:image/png;base64,iVBOR ...


Are you saying all I have to do is write a clean() method for the
HTMLField to detect various image types?

Thanks

Mike

>
> On October 7, 2020 7:02:16 PM CDT, Mike Dewhirst
>  wrote:
>
> Users need to include an image of a molecular structure in a project I'm
> building. These are small enough that I could limit the size without
> restricting functionality. The image needs to be printed out for a report.
>
> What is the best approach?
>
> I have implemented a TinyMCE-lite HTMLField which accepts a pasted image
> and in other systems I have used a Django ImageField for uploading.
> ImageField is obviously easier on database size but pasting is easier on
> the users.
>
> I'm keen to make the UI easier (by pasting) but I worry it is a
> vulnerability if abused.
>
> Thanks for any advice
>
> 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/0F5DF089-E571-4730-9D46-7DD41216F4D4%40fattuba.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/3611cc83-8ce8-5ccc-5f15-1463da733e26%40dewhirst.com.au.


signature.asc
Description: OpenPGP digital signature