Re: Newtwork Marketing System

2023-06-15 Thread Benjamin Schollnick
> Hi Everyone! > So I want to know how to implement a binary tree to a web app. > This is how the app works: > > — Person A opens an account > — Person A refers to people > — Person B invests, > — Person A get 10% of Person B's investment > So it goes on iteratively. Please note, nothing here

Re: Need help Scraping a couple of websites

2022-12-23 Thread Benjamin Schollnick
> I can scrap for you. I just created an IMDB scrapper(which is illegal, so not > going to post the code anywhere but mailed IMDb about it) in the flask. > Also, have experience in Django and web scrapping using bs4. illegal? Against Copyright, and maybe not permitted by End-User License. But

Re: objects.create only pupulate few fileds and when called again it populate all the fiedls in DB

2022-12-15 Thread Benjamin Schollnick
> When I create an object of model and assign few values to it then the objects > get created but only few values get populated but again if I get the created > object and assign the values it get populated this time > > Anyone have any idea why it is happening Generally speaking this is probab

Re: Resolving my display

2022-12-15 Thread Benjamin Schollnick
> Good day, i'm just beginning to learn django. Kindly help resolve this error. What error are you experiencing, since there’s no obvious issue in the screen capture that I see? - Benjamin > > > -- > You received this message because you are subscribed to the Google Groups > "Djan

Re: Django SMS project

2022-05-22 Thread Benjamin Schollnick
> Hi guys I have a project of django to send SMS to mobile number, > Please guys I really need your helps Well, that’s fine, but what help are you looking for? - Benjamin > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To u

Re: dja...@googlegroups.com

2021-11-29 Thread Benjamin Schollnick
Why would you need to use blockchain technology, other than to simply check a checkbox and use a buzz word? - Benjamin > On Nov 29, 2021, at 1:37 AM, Bernard Mallala wrote: > > This is a very open ended comment but I will take a stab at it. > To build a blood bank management solution

Re: You're accessing the development server over HTTPS, but it only supports HTTP.

2021-09-30 Thread Benjamin Schollnick
FYI - Seems to have no effect on that error. >From what I see the development server just doesn’t support SSL. But, here are instructions on setting it up. https://timonweb.com/django/https-django-development-server-ssl-certificate/

Re: Git Hub Project

2021-08-10 Thread Benjamin Schollnick
What editor are you using? And it’s not spaces & Tabs, it’s one or the other. It has to be uniform. And have you looked at all at the Python Tutorial? The Python Tutorial — Python 3.9.6 documentationhttps://docs.python.org › tutorial

Re: Git Hub Project

2021-08-10 Thread Benjamin Schollnick
> Thank you very much for your kind words. I am facing this errors : > > > ',' or ')' expected > > Unexpected indent > > Statement expected, found Py:DEDENT > > for the last 2,3 days. Kindly help me out. You need to share your code. Pycharm should be dropping you exactly on the line that is res

Re:

2021-07-22 Thread Benjamin Schollnick
> Only for practice, I want to built a video downloader web app, from a > specific website. > Problem >first I have to download the video and then send to the user, it time > consuming I want to directly download at the user side, is it possible in > Django. Is this possible, yes. Take

Re:

2021-07-19 Thread Benjamin Schollnick
we make it hard > to download ?any referell link? > > On Mon, 19 Jul, 2021, 7:38 am Benjamin Schollnick, > mailto:bscholln...@schollnick.net>> wrote: > Good luck. > > If the user can play the video, then they by definition have to be able to > download the video. Unles

Re:

2021-07-18 Thread Benjamin Schollnick
Good luck. If the user can play the video, then they by definition have to be able to download the video. Unless you want to create your own proprietary streaming mechanism, if the web browser can display the video, it has to be able to cache the video (eg download it locally). For example,

Re: Watchdog & Django

2021-05-23 Thread Benjamin Schollnick
ile handles under a large directory structure / number of files. Hope this helps someone else that is trying to integrate watchdog into Django. - BEnjamin > On May 20, 2021, at 10:14 PM, Benjamin Schollnick > wrote: > > Folks, > > I’m working on revamping the Ga

Watchdog & Django

2021-05-20 Thread Benjamin Schollnick
Folks, I’m working on revamping the Gallery/viewer application that I wrote in Django. One issue I’ve had is that it’s a dynamic on the fly thumbnail creator, but I’ve used a homebrew (fairly successfully) cached system to keep track of the directories & file contents. Unlike many of the other

Better way to bring in tags automatically for Jinja2 templating?

2021-05-04 Thread Benjamin Schollnick
I'm not sure there is a better way to do this? But I am using the Jinja2 templating engine with Django, and I originally set this up in Django2-ish? So maybe I missed a better way to do this... So I have a jinjaenv.py file that simply setups up the environment for the Jinja2 template engine.

Re: module not found

2021-04-26 Thread Benjamin Schollnick
Okay, it appears you are on a Macintosh…. Which is not the problem, but I ran into the same issue, and it’s most likely that you installed a different version of Python than what came with the OS? try: python3 -m pip list | grep -i django python2 -m pip list | grep -i django I would bet even

Re: Playing Video with Django and html tag

2021-04-21 Thread Benjamin Schollnick
What web browser are you using? I had to work my way around this as well, and it ended up being that I had to use: RangedFileResponse module. Name: django-ranged-response Version: 0.2.0 Summary: Modified Django FileResponse that adds Content-Range headers. Home-page: https://github.com/wearespin

Re: Django application is slow

2021-03-24 Thread Benjamin Schollnick
gt; > > On Wed, Mar 24, 2021 at 11:52 AM Benjamin Schollnick > mailto:bscholln...@schollnick.net>> wrote: >> Dear Programmers, >> my Django application is big and slow any leads on how to make it fast >> responsive. > > In my experience, if the Djang

Re: Django application is slow

2021-03-24 Thread Benjamin Schollnick
> Dear Programmers, > my Django application is big and slow any leads on how to make it fast > responsive. In my experience, if the Django application is slow, it’s often related to the database either queries, or the database engine is scaled correctly. (Of course, that’s assuming the compute

Re: Bind device with login id and password

2021-03-05 Thread Benjamin Schollnick
> On Mar 5, 2021, at 12:52 AM, Sachin Kumar wrote: > > Hi Experts, > > Is there any way or logic in Django where we can bind user login id and > password with first device login id. > for example:- > If a user first time login into a PC A, he can't login into PC B using same > login id. He

Re: Classifieds page loading is to slow

2021-01-14 Thread Benjamin Schollnick
Also don’t forget to include Indexing. As a general rule, any field that you perform any query against, should be indexed. Yes, it costs a “bit” for disk space, but indexing can dramatically increase your query speed. - Benjamin > On Jan 14, 2021, at 10:44 PM, Benny M wrote: >

Re: Good Django libraries to read to really understand class-based views?

2021-01-12 Thread Benjamin Schollnick
> I recommend you consider > https://spookylukey.github.io/django-views-the-right-way/ I second this, I’m going through this right now, and it’s very useful information regarding Class Based views vs Function Based views… It’s making me consider rewriting Quickbbs/Gallery again, with a less klu

Re: Apple M1 Silicon + Django = weird results

2021-01-09 Thread Benjamin Schollnick
? - Benjamin > On Dec 22, 2020, at 6:46 AM, Benjamin Schollnick > wrote: > > Just an update. > > Working my way through the problem, it appears that either the data is being > written truncated to the database, or Pillow is generating a truncated image > preview (

Re: Apple M1 Silicon + Django = weird results

2020-12-22 Thread Benjamin Schollnick
optimizing the code in some way… etc.) Plus, It might be time for me to just simply start rewriting the code from the ground up again, to better optimize and clean it up. - Benjamin > On Dec 21, 2020, at 10:52 PM, Benjamin Schollnick > wrote: > > >> Have you tried

Re: Apple M1 Silicon + Django = weird results

2020-12-21 Thread Benjamin Schollnick
witch it around… - Benjamin > > On Mon, Dec 21, 2020 at 3:19 PM Benjamin Schollnick > mailto:bscholln...@schollnick.net>> wrote: > Folks, > > I’m using django for an online gallery application, and I’ve seen some weird > results since switching over to the M1

Apple M1 Silicon + Django = weird results

2020-12-21 Thread Benjamin Schollnick
Folks, I’m using django for an online gallery application, and I’ve seen some weird results since switching over to the M1 Mac Mini. (Please note, I am running it under Rosetta / Intel Translation, since pillow doesn’t seem to build under M1 native). So this could be a quirk of Rosetta, Django,

Re: transforming form input

2020-07-08 Thread Benjamin Schollnick
What I generally do is use https://pypi.org/project/nameparser/ While Clive is correct, I haven’t seen name parser fail at breaking it apart correct so far. - Benjamin > On Jul 8, 2020, at 6:43 PM, Clive Bruton wrote: > > > On 7 Jul 2020, at 22:58, Kai Kobschätzki wrote: > >> I re

Looking for a solution? Calculating index/offset of a particular record?

2020-05-27 Thread Benjamin Schollnick
I’m trying to optimize a few different things. I am looking to try to change this into a more database driven routine, instead of having to iterate through each and every record. While not time consuming (overall), I would like to try to make it a bit cleaner… Effectively I am calculating whic

Re: Django 3.0 alpha 1 released

2019-09-10 Thread Benjamin Schollnick
> On Sep 10, 2019, at 5:29 AM, Carlton Gibson wrote: > > We've made the first release on the way to Django's next major > release, Django 3.0! > > With about two and a half months until the > final release (scheduled for December 2nd), we'll need timely testing > from the community to ensure

Re: Django 3.0 alpha 1 released

2019-09-10 Thread Benjamin Schollnick
We've made the first release on the way to Django's next major > release, Django 3.0! > > With about two and a half months until the > final release (scheduled for December 2nd), we'll need timely testing > from the community to ensure an on-time, stable release. > > Check out the blog post:

Re: SHA-512 in django model? Optimization help?

2019-04-08 Thread Benjamin Schollnick
> Something I forgot to mention earlier: If the files are not too big, > consider generating the SHA-512 on the fly instead of storing it. > Space-wise, it is the best possible optimization, obviously. And it > frees you from having to ensure consistency between the file and the hash. > We'r

SHA-512 in django model? Optimization help?

2019-04-07 Thread Benjamin Schollnick
Right now, I’m generating a SHA-512 of a file in my Django model, but that requires a string of 128 bytes… I’m not positive on a better way to store the sha-512 in my model? Can anyone suggest a method / design that would be better optimized? A quick test, looks like I might be able to store t

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-24 Thread Benjamin Schollnick
Melvyn, First, I'm sorry if this come off a bit snarky, it's been a long day... I want to say Thank you for your assistance, and I appreciate the help, even though I took potentially the easy way out... But squashing the migrations, made me realize that the root cause, may have been an earlie

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-23 Thread Benjamin Schollnick
Okay, squashing seems to have resolved this issue... Seems a bit voodoo-ish, but it worked. Any suggestions for preventing this in the future would be nice! - Benjamin On Wednesday, May 23, 2018 at 6:04:47 PM UTC-4, Benjamin Schollnick wrote: > > > Not convinced yet this

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-23 Thread Benjamin Schollnick
> Not convinced yet this is a py2 versus py3 problem. First, you're running > different command flags (though, not sure it matters in this case). > Second, the > Django version for py3 can be different from the py2 version. > > From the backtrace it isn't clear though which app is causing thi

Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-23 Thread Benjamin Schollnick
I've an established Django application that I'm finishing up a new release for, and I'm working on solving any last python 3 issues. I'm confused at what's happening here though... Run manage.py migrations under v2.7x: nerv:quickbbs Benjamin$ manage.py migrate --run-syncdb Running on nerv.loca