Need an Advice about large database I/O

2021-07-04 Thread Mottaz Hegaze
Hello Friends,

Hope all is well,

I have a project that involves reading large data files ( csv, excel sheets
) and writing them to a database.

I am thinking of using the django ORM to read / write from files from / to
the database ( maybe postgresql ) and to use Django templates to show
records from the database.

Is django the write solution for this? using ORM and templates ?

When writing thousands of records to the database , can I execute this in
another thread or asynchronously ?

When reading millions of records from a database , how to do it
without freezing the view until all records are loaded ?

Looking forward to all your thoughts.

Regards

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


Re: recording video with raspberry pi camera module

2021-06-14 Thread Mottaz Hegaze
What does this has to do with django ?

On Sat, 12 Jun 2021, 1:41 am hanin guesmi,  wrote:

> hi django users ,i wanna  record a video with raspberry pi camera module
>   just click the app interface button and then the camera starts recording,
> who has an idea about it!
> thnx
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABqiOL-5-YGduvDdyMtTAgOk18rr%2BHd5XNPNp0ur8URonci%3DUw%40mail.gmail.com
> 
> .
>

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


Re: Filtering fields in http response data from http request url ?

2021-05-30 Thread Mottaz Hegaze
Using Django Rest Framework , you can alter the output by overriting
function to_represent in serializer.

On Mon, 31 May 2021, 1:26 am Adaeit Telle,  wrote:

> Hi Django Developers,
> Json response from the django server is huge as the data fields contained
> are of big size.
> So, can I restrict the *fields* required in the response data from the
> *HTTP Request Url* ?
> Is there a generic param, which can be used ?
>
> Just like QuerySet, can we have "ValueSet" to restrict the fields(or
> columns) in the json response data ?
>
> Regards,
> Adaeit
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f274b86b-e3fb-483b-802e-857362087619n%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/CAHV4E-dB0%3DHha6HgCoG4igdBbyyjPbQMO3rjkZBPaHH6_Kwscw%40mail.gmail.com.


Re: Tables missing in SQLite but viewable in admin (confusion)

2021-05-28 Thread Mottaz Hegaze
Maybe those are not migrated yet,
make sure that all your apps are added to installed_apps list in
settings.py , run makemigrations and migrate

On Sat, May 29, 2021 at 1:56 AM Ryan Kite  wrote:

> Greetings!
>
> Am very confused about why the local dev SQLite DB 'appears' to be missing
> several tables.
>
> In the Django Admin they exist and have data.
>
> I would be expecting to see the following tables in the DB but can't find
> them.
> (These are the model names since I don't know what the table name look
> like yet.)
>
>- Model: Allergies | Table: ?
>- Model: DoctorsAndProviders | Table: ?
>- Model: FamilyContacts | Table: ?
>- Model: PastSurgicalHistory | Table: ?
>- Model: HealthProfile | Table: ?
>
> But, I do see these two models with their tables in the DB
>
>- Model: Med | Table: meds
>- Model: PastMedicalHistory  | Table: past_med_hx
>
>
> The application seems to be working for the most part, we can still add
> and remove objects. But was encountering errors when trying to build a
> ForeignKey from the Allergies model to the HealthProfile Model that lives
> under the Users app. The error said something along the lines about the ID
> did not exist in the table? Which caused me to view the DB and notice this.
>
> Any help appreciated :)
>
> screenshots attached.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9f7fecd6-b152-4e6d-8a9e-d22508b9d975n%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/CAHV4E-fMxuouf-m3wt5dvn%2BpEwiobspo3aRLrUK-9LtOrVrVxw%40mail.gmail.com.


Re: Telnet problem

2021-05-27 Thread Mottaz Hegaze
Maybe your ip is blocked now.

On Thu, 27 May 2021, 2:27 pm Antonis Christofides, <
anto...@antonischristofides.com> wrote:

> Google doesn't officially support using its email service as a smarthost
> (at least not so with free accounts). Therefore some things may be working
> for a time and then they might stop working.
>
> Antonis Christofides
> +30-6979924665 (mobile)
>
>
> On 27/05/2021 14.27, Mostapha Bouderka wrote:
>
> Hi.
>
> I know this isn't django related but I searched everywhere and couldn't
> find any help.
> The issue is, in order to send emails using smtp (or even django's
> send_mail), I had to initiate " telnet smtp.gmail.com 587 ", which worked
> for a while, but now I can't get it to work. When I type this command in
> the terminal, I get this error :
>
> Connecting To smtp.gmail.com...Could not open connection to the host, on
> port 587: Connect failed
>
> I'm using Windows. Can someone please help me?
>
> Thanks in advance.
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3ab43b83-eaac-408c-b062-3ac00b8f1ed8n%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/2531164c-d879-7417-3d5a-b11c12c4bc55%40antonischristofides.com
> 
> .
>

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


Re: In need of immediate help from Django community

2021-05-24 Thread Mottaz Hegaze
I think in second image ( usercreateform ) your model needs to be User not
profile

On Mon, May 24, 2021 at 10:08 PM Aritra Ray  wrote:

> Hi,
>
> I've been facing a problem recently in creating a Django Profile model for
> an E-commerce website.
> Error: FieldError(message) django.core.exceptions.FieldError: Unknown
> field(s) (username) specified for Profile
> Kindly help me out if possible. The screenshots have been attached below
> and the github link for the project has been provided.
>
> Link: https://github.com/First-project-01/Django-ecommerce (Check out the
> 'changes' branch)
>
> Regards,
> Aritra
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFecadvxBCa6w02%3DZ887%2BnaEdY-R6B9%2BVVFzVW5zYvkt1gA2hg%40mail.gmail.com
> 
> .
>

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


Re: Front Camera and Sound recording

2021-04-26 Thread Mottaz Hegaze
I think this is more related to Javascript.

Please read about webRTC and see if this is what you are looking for.

On Mon, 26 Apr 2021, 3:11 pm Kushal Neupane,  wrote:

> Can i inbox you?
>
> On Mon, Apr 26, 2021 at 5:42 PM Kasper Laudrup 
> wrote:
>
>> On 26/04/2021 13.37, Kushal Neupane wrote:
>> > I am developing front camera and sound recording app for one project. I
>> > do not have experience in these. I need some suggestion and guide for
>> > this work. Thank you.
>> >
>>
>> Try to describe your project a bit more in details and how you think
>> this is related to Django.
>>
>> 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/9ef00570-402e-998f-210f-e49a142ea0f0%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/CAG7V0bCE9GtVJnT0myOzuf6wDmacFwYNQi7SNkgDqVsXw%2BgZYQ%40mail.gmail.com
> 
> .
>

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


Re: Django vs Spring decision

2021-03-07 Thread Mottaz Hegaze
Use Django , its really much faster and easier to develop a product using
it.

On Sun, 7 Mar 2021, 4:11 am makhan Kumbhkar, 
wrote:

> Django is Best framework for upcoming time
>
> On Sunday, March 7, 2021 at 12:38:04 AM UTC+5:30 Jan-Marten de Jong wrote:
>
>> Derek and Laya,
>> Thank you for the feedback.  Best regards, Jan-Marten
>>
>> On Tuesday, 2 March 2021 at 13:41:43 UTC Derek wrote:
>>
>>> You''ll probably not get a unbiased opinion. Devs who work with Java as
>>> their primary language are going to pick Spring; and the opposite in the
>>> case of Python.
>>>
>>> If you already have much Java experience and don't want to start
>>> learning Python, then rather go on with Spring.
>>>
>>> Some comments over at Reddit:
>>> https://www.reddit.com/r/django/comments/d8dbx3/django_vs_spring_for_backend_development/
>>>
>>> P.S. Python is not an "upcoming" language - its been around longer than
>>> Java (
>>> https://en.wikipedia.org/wiki/Timeline_of_programming_languages#1990s)
>>> and has a substantial and well-developed ecosystem. Its bigger use is
>>> (probably) in data science and the wider science community.  If you're
>>> planning to develop "pure" enterprise business systems, you may be better
>>> off staying with Java.
>>>
>>>
>>> On Tuesday, 2 March 2021 at 02:16:50 UTC+2 Jan-Marten de Jong wrote:
>>>
 Dear Django users,

 I am in the process of deciding the architecture of a new Web
 application and I am considering Django or Spring.

 Would appreciate some feedback on why Django would be a better choice
 than the Spring Framework. I had quite some experience with JAVA but at the
 Universities they all start with Phyton nowadays so that seems to be an
 upcoing language and Django seems to be one of the most popular Frameworks
 for Phython.

 Looking forward to your support in making theis very important
 decision.

 Best regards, Jan Marten

 --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c105c990-c344-4216-84c5-c72c0b6045d5n%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/CAHV4E-cW%3D5bZPj-hukpp1QBpf%2Bh5FYFdq_vUM0RD0vqnGy_utA%40mail.gmail.com.


Re: optimisation django

2021-02-11 Thread Mottaz Hegaze
Also using caching will make a huge difference.

Imagine that you stored all table rows in cache , you only need to rebuild
this cache tree every time you update a row or delete or add new row , you
update the cache tree.

But a simple retrieve will come from cache not database , this will make a
huge difference

On Wed, 10 Feb 2021, 4:34 pm carlos,  wrote:

> Hi, read about this topics
> https://docs.djangoproject.com/en/3.1/ref/models/querysets/#select-related
> #for FK relations
>
>
> https://docs.djangoproject.com/en/3.1/ref/models/querysets/#prefetch-related-objects
> # for M2M relations
>
> and read about pagination
> https://docs.djangoproject.com/en/3.1/topics/pagination/
>
> maybe this 3 topics help you about optimization your applications
>
> Cheers
>
> On Wed, Feb 10, 2021 at 8:02 AM Mottaz Hegaze 
> wrote:
>
>> Use pagination and select_related , prefetch_related.
>>
>> Also consider using caching
>>
>>  Default django pagination will load all rows then paginate them , which
>> will consume time and hits on database.
>>
>> Search for a custom pagination solution that loads 10 rows by 10 rows as
>> an example
>>
>> On Wed, 10 Feb 2021, 3:55 pm kévin endelin, 
>> wrote:
>>
>>>
>>> I am developing a django application, most of the views are tables, I am
>>> facing a problem the loading time of my page is extremely long. how can
>>> I do to optimize this, my data set represents more than 100,000 rows. thank
>>> you for your 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/9a30277b-78d4-49c7-ac0a-399717ed7fe3n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/9a30277b-78d4-49c7-ac0a-399717ed7fe3n%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/CAHV4E-fByf5F%2B-x_TN%2B0Uo_u5VwqZ2__ff-DP24jS9kNJJ07Kw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHV4E-fByf5F%2B-x_TN%2B0Uo_u5VwqZ2__ff-DP24jS9kNJJ07Kw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> 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-7rO1A5hKPePy3zN2pPS9pfxLvQO-HK1XZW%2BZ1tVexo63TBA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAM-7rO1A5hKPePy3zN2pPS9pfxLvQO-HK1XZW%2BZ1tVexo63TBA%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/CAHV4E-e%3D6ddQ__JkwFDjtfz1HbdUXdhniVXFZLOFSbD%3DZG9NmQ%40mail.gmail.com.


Re: optimisation django

2021-02-10 Thread Mottaz Hegaze
Use pagination and select_related , prefetch_related.

Also consider using caching

 Default django pagination will load all rows then paginate them , which
will consume time and hits on database.

Search for a custom pagination solution that loads 10 rows by 10 rows as an
example

On Wed, 10 Feb 2021, 3:55 pm kévin endelin,  wrote:

>
> I am developing a django application, most of the views are tables, I am
> facing a problem the loading time of my page is extremely long. how can I
> do to optimize this, my data set represents more than 100,000 rows. thank
> you for your 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/9a30277b-78d4-49c7-ac0a-399717ed7fe3n%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/CAHV4E-fByf5F%2B-x_TN%2B0Uo_u5VwqZ2__ff-DP24jS9kNJJ07Kw%40mail.gmail.com.


Re: Volunteer wanted: convert Mathics Django from 1.x to 2.x or 3.x

2020-09-16 Thread Mottaz Hegaze
Let me see what I can do.

On Wed, 16 Sep 2020, 8:14 am Kunal Solanke, 
wrote:

> I would like to do this too.
>
> On Wed, Sep 16, 2020, 11:16 Ogunsanya Opeyemi 
> wrote:
>
>> Hi i would like to .
>>
>> On Tuesday, September 15, 2020, rocky.bernst...@gmail.com <
>> rocky.bernst...@gmail.com> wrote:
>>
>>> Mathics is a general-purpose computer algebra system (CAS). It is an
>>> open-source alternative to Mathematica. It is free both as in "free beer"
>>> and as in "freedom".
>>>
>>> With installation, it comes with a very simple Django web interface to
>>> enter expressions and show them. (There is also a Jupyter interface in the
>>> works as well as plain-old command line.)
>>>
>>> Mathics has had a long hiatus of inactivity, but we'd ike to bring it to
>>> life again. It was written in the Django 1.x era and it shoud be upgraded
>>> to Django 2.x or even better 3.x. Since the Django part isn't that involved
>>> I imagine it is a simple thing to do.
>>>
>>> Any volunteers?
>>>
>>> The git repository is at https://github.com/mathics/Mathics/
>>>
>>> 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 it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/c2d319d6-44ef-4926-bb91-d63c3b8f2a37n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> OGUNSANYA OPEYEMI
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CABJxPrGJrKETGrQ5ZWnMQmzy_Yi1bV3UbAgGaod25PEwJ%3Ddu4A%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/CAOecAnwDCyYzRdSRm6pEok7vid3B7RWujr%3Dt-CgoRk4Bh-3z8g%40mail.gmail.com
> 
> .
>

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


Re: Flask to django

2020-08-08 Thread Mottaz Hegaze
no

On Sat, Aug 8, 2020 at 4:22 PM sakshi jain  wrote:

> hello
>
> On Sat, Aug 8, 2020, 19:31 Amar prakash  wrote:
>
>> Anyway to transform my flask code to django
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/d7f28744-33bc-4c3b-9e93-4eb827b0554do%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/CAJhs3iO9-Fv_y8_77uxSnJgzmHOWJsrhuSMyNt25jChNUoCyFg%40mail.gmail.com
> 
> .
>

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


Re: Django storing byte string for image

2020-08-05 Thread Mottaz Hegaze
You can use database to store the location of the file on server , not the
file itself..

Checkout in Documentation

models.ImageField()
models.FileField()

On Tue, 4 Aug 2020, 9:01 pm را نيا,  wrote:

> Good evening
> I want to import photos and PDF files from desktop app and display them in
> web app, how can I do it without using binary format?
>
> Le jeudi 4 janvier 2018 10:44:53 UTC+1, Shem Ogumbe a écrit :
>>
>> Maybe try the conversion then save the path to MongoDb, but not the
>> bytsetring itself
>>
>> On Wednesday, January 3, 2018 at 3:03:36 PM UTC+3, chern...@gmail.com
>> wrote:
>>>
>>> What field should i use to store byte string so that i can later use it
>>> for ByteIO to convert it into image ?
>>>
>>> As this is my first time doing on byte string to image, i am pretty lost
>>> on what i need to do.
>>>
>>> I tried using BinaryField for the image model but when checking the
>>> field out on Django admin, it gave me this error
>>> 'image' cannot be specified for MyUser model form as it is a
>>> non-editable field
>>> i also tried setting BinaryField(editable=True) but it still doesnt work.
>>>
>>> May i have some guidance on how to store the byte string ?
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/348196d3-9529-4fdc-8686-fb9b375fdbd6o%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/CAHV4E-f88hk8h4B96NQHAwuac%3DXH1UHHKkkYTqzFXTi2k7Dipg%40mail.gmail.com.


Re: How to save images posted by application users

2020-07-17 Thread Mottaz Hegaze
Try to use subfolder in media, upload_to='/images'



On Fri, 17 Jul 2020, 7:18 am Exactly musty, 
wrote:

> I also had the same problem long time ago I remember i felt like hanging
> myself,here is what I did, i deleted the media folder,created by django,
> try this if it will work
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c3d661dd-7cf3-4ff7-9332-422687927a29o%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/CAHV4E-cFYn-NfZ%3D8N6hiGBERXZU1Fxe4ZO236qgWzTAesJNzNA%40mail.gmail.com.


Re: How to save images posted by application users

2020-07-16 Thread Mottaz Hegaze
You need a model with ImageField or FileField

On Thu, 16 Jul 2020, 7:07 am Ram,  wrote:

> Hi,
>
> We need to save images posted by our application users and the images will
> be displayed in application UI once they are saved successfully. We are
> trying with these parameters in our settings.py but they are not working
> and our OS platform is Windows 10 OS. We know file paths are different in
> Windows OS when compared to non Windows OS platforms. Did anyone use Window
> OS in this community and able to save image successfully?
>
> STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
>> STATIC_URL = '/static/'
>>
>>
>> MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
>> MEDIA_URL = '/media/'
>>
>>
> Another challenge that we have is  that the above question is related to
> development, becase we use Windows laptop for our application evelopment,
> but once the code is integrated we need to deploy the code in our hosting
> server that is running with Linux OS. So we are not sure how to handle the
> case of multi OS platforms?
>
> I'm sure many people could have resolved this in their applications. I
> appreciate if you can share suitabe recommendations?
>
> Best regards
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F095b3_rr2qv02qrneLKs%2BySO1AjXedUv%3D653LY3cfDnw%40mail.gmail.com
> 
> .
>

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


Re: Django

2020-07-07 Thread Mottaz Hegaze
try to use function name IndexList with reverse  , not the url name
i don't see all your code

On Tue, Jul 7, 2020 at 5:41 PM Tanni Seriki  wrote:

> Thanks sir I tried that also,
> But it brinks another error
> No reverse for index, index not a valid function
>
> On Tue, Jul 7, 2020, 4:38 PM Mottaz Hegaze  wrote:
>
>> try this
>>
>> in your project urls not your app urls register the namespace like this
>>
>> path('' , include('blog.urls' , namespace="post")
>>
>>
>>
>> On Tue, Jul 7, 2020 at 5:11 PM Tanni Seriki 
>> wrote:
>>
>>> Please family.please help me out,
>>> Am trying to create a posts details Page, in model.py I declare a get
>>> absolute URL with a reverse of my post details urls. But if I run it it
>>> shows me an error, no reverse, post is not a registered namespace.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/6bc7554b-bee8-40ee-8662-e156ff6ae768o%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/CAHV4E-ddZOSARB9tOqu2cXY6SOR_OoUUWjbE40_v%2B8u1YetF%2BA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHV4E-ddZOSARB9tOqu2cXY6SOR_OoUUWjbE40_v%2B8u1YetF%2BA%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/CALWCJq3vH%3DzgOFO%3DG2k6Lc%2BXZAyyrX1EXFSgKKEGa0Hp43tzXA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALWCJq3vH%3DzgOFO%3DG2k6Lc%2BXZAyyrX1EXFSgKKEGa0Hp43tzXA%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/CAHV4E-e8vL1eGKNBLN%2B%3DzpaBZ%2B0sBFNvxviHWSZ%3DAsHsiTg4ZQ%40mail.gmail.com.


Re: Django

2020-07-07 Thread Mottaz Hegaze
try this

in your project urls not your app urls register the namespace like this

path('' , include('blog.urls' , namespace="post")



On Tue, Jul 7, 2020 at 5:11 PM Tanni Seriki  wrote:

> Please family.please help me out,
> Am trying to create a posts details Page, in model.py I declare a get
> absolute URL with a reverse of my post details urls. But if I run it it
> shows me an error, no reverse, post is not a registered namespace.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6bc7554b-bee8-40ee-8662-e156ff6ae768o%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/CAHV4E-ddZOSARB9tOqu2cXY6SOR_OoUUWjbE40_v%2B8u1YetF%2BA%40mail.gmail.com.


Re: Required Django programmers for HR Portal project

2020-06-27 Thread Mottaz Hegaze
Mr Kumar,

Please checkout your inbox or spam folder,

I sent you my CV with email title " [ Motaz Hejaze ] Senior Python Django /
Flask / Node.js  Backend developer "

Thanks & Regards

On Sat, Jun 27, 2020 at 11:59 PM oba stephen  wrote:

> Would be interestef
>
> On Sat, Jun 27, 2020 at 8:57 PM maninder singh Kumar <
> maninder.s.ku...@gmail.com> wrote:
>
>> Dear group subscribers,
>>
>> I require Django programmers for an HR Job portal.  It is an intern
>> project.
>>
>> regards  willy
>>
>> 
>> Maninder Kumar
>> about.me/maninder.s.kumar
>> 
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CABOHK3QFjdFBhptC5YExGd%3DtO%2BmMeZzjy%3DL0u67mWRT2SihwfA%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/CAAJsLnowvpfp-i3vg-qL4HOnTy28vywSiUU41S%3DPAt3NJaqGog%40mail.gmail.com
> 
> .
>

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


Re: Retrieve Data in DataBaeses

2020-06-20 Thread Mottaz Hegaze
you need to do the django polls app tutorial

On Sat, Jun 20, 2020 at 9:12 PM waqar khan  wrote:

> I have recently start in Django
> I have create a simple project Registration Form in save database
> Mysqlite3,
> But, how to retrieve data database show in html file table formet ,
>
> Please any 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/6c8c6f44-8696-4ba1-989d-74881e7df835o%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/CAHV4E-eC_JsyUYCA_U5%2B-U7f8LC-_YNaAD2BHvZXYo-BT0V9PQ%40mail.gmail.com.


Re: I need someone to ask

2020-06-19 Thread Mottaz Hegaze
add me on skype and let us talk

m3tz-hjze


On Fri, Jun 19, 2020 at 8:32 PM Rami Hegazy  wrote:

> My problem is i don't understand what exactly happens and why
>
> Please, if you are someone who understands django very well i need to get
> in touch with you somehow to explain some stuff to me
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6dd531a0-8241-4e8f-b6fb-fa4ecbe877e0o%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/CAHV4E-fE2-SC2JtDwF4eYKZ%3D%2BitvE3jic_75Dm71xoEEQrHAWA%40mail.gmail.com.