Re: please help me todebug this code

2021-08-31 Thread 'Peter van der Does' via Django users
You seem to be confused about who asked the question because it was not
me who asked the question.

On 8/31/21 6:58 AM, Munzir Abba Daneji wrote:
> Hi peter The tag library you use is not correct use 
> 
> {% load static %}
>
> again you html directory seems to be not organise try project_folder >
> Template_folder> index.html for example 
>
> On Tue, Aug 31, 2021, 1:46 AM 'Peter van der Does' via Django users
> mailto:django-users@googlegroups.com>>
> wrote:
>
> Uh what question are you answering?
>
> On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
>> Peter Check your Template DIR you supposed to organize you
>> folders flow under your "first_project" folder create the
>> template folder and inser you html 
>>
>> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django
>> users > <mailto:django-users@googlegroups.com>> wrote:
>>
>> You got a " on line 2 that shouldn't be there
>>
>> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>>> In template C:\Users\DUSHYANT
>>> 
>>> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
>>> error at line 2
>>>    '"' is not a registered tag library. Must be one of:
>>>
>>>    1 : !DOCTYPE html
>>>    2 :  {% load static "%} 
>> -- 
>> *Peter van der Does
>> o: ***410-584-2500
>> m: 732-425-3102
>> *ONeil Interactive, Inc *
>> oneilinteractive.com <http://www.oneilinteractive.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
>> <mailto:django-users+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit
>> 
>> https://groups.google.com/d/msgid/django-users/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.com
>> 
>> <https://groups.google.com/d/msgid/django-users/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.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
>> <mailto:django-users+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit
>> 
>> https://groups.google.com/d/msgid/django-users/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com
>> 
>> <https://groups.google.com/d/msgid/django-users/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com?utm_medium=email_source=footer>.
> -- 
> *Peter van der Does
> o: ***410-584-2500
> m: 732-425-3102
> *ONeil Interactive, Inc *
> oneilinteractive.com <http://www.oneilinteractive.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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/django-users/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.com
> 
> <https://groups.google.com/d/msgid/django-users/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADL6%2BC%3DW20E1e-NZpRPjmULL%3DaD-Ty13xMk78jj%3Dupc-Wx%3D_pw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADL6%2BC%3DW20E1e-NZpRPjmULL%3DaD-Ty13xMk78jj%3Dupc-Wx%3D_pw%40mail.gmail.com?utm_medium=email_source=footer>.
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.com <http://www.oneilinteractive.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/7abe5b37-5819-608b-a746-979c31812592%40oneilinteractive.com.


Re: please help me todebug this code

2021-08-30 Thread 'Peter van der Does' via Django users
Uh what question are you answering?

On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
> Peter Check your Template DIR you supposed to organize you folders
> flow under your "first_project" folder create the template folder and
> inser you html 
>
> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users
> mailto:django-users@googlegroups.com>>
> wrote:
>
> You got a " on line 2 that shouldn't be there
>
> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>> In template C:\Users\DUSHYANT
>> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
>> error at line 2
>>    '"' is not a registered tag library. Must be one of:
>>
>>    1 : !DOCTYPE html
>>    2 :  {% load static "%} 
> -- 
> *Peter van der Does
> o: ***410-584-2500
> m: 732-425-3102
> *ONeil Interactive, Inc *
> oneilinteractive.com <http://www.oneilinteractive.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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/django-users/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.com
> 
> <https://groups.google.com/d/msgid/django-users/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com?utm_medium=email_source=footer>.
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.com <http://www.oneilinteractive.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/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.com.


Re: please help me todebug this code

2021-08-30 Thread 'Peter van der Does' via Django users
You got a " on line 2 that shouldn't be there

On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
> In template C:\Users\DUSHYANT
> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
> error at line 2
>    '"' is not a registered tag library. Must be one of:
>
>    1 : !DOCTYPE html
>    2 :  {% load static "%} 
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.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/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.com.


Re: Encrypt A Table using Django Model

2021-08-13 Thread 'Peter van der Does' via Django users
https://django-cryptography.readthedocs.io/en/latest/

On 8/12/21 3:49 AM, Sachin Kumar wrote:
> Hi Experts,
>
> If anyone has done encryption of table using Django. please let us
> know the process or any article which helps in the encryption of table
> data using Model and when required it decrypt the table data.
>
> Please help and Guide for a Solution.
>
> Regards
> Sachin
>
> -- 
> 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/de2075bf-be25-4c3b-b7fa-605b1fac2981n%40googlegroups.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.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/f35e5e49-1967-c358-f64b-da1387501200%40oneilinteractive.com.


Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread 'Peter van der Does' via Django users
Overwrite the save method on the String model and when you hit save you
split and save the words in the S_W_C model. This does mean when you
update the String record all the words are added to the S_W_C model as
well, as there is no correlation between the two model you don't know if
that String was already counted.

On 7/8/21 10:26 PM, DJANGO DEVELOPER wrote:
> is there anyone who can help me here?
>
> On Fri, Jul 9, 2021 at 2:51 AM DJANGO DEVELOPER
> mailto:abubakarbr...@gmail.com>> wrote:
>
> let suppose I have 2 models:
> *class String(models.model):*
> *    string = models.textarea(null = True, blank = True)*
> *    user = models.ForeignKey(user, on_delete=models.CASCADE)*
> *    def __str__(self):*
> *        return self.string*
>
> and
>
>
> *class Song_Words_Count(models.model):*
> *    song = models.ForeignKey(user, on_delete=models.SET_NULL)*
> *    def __str__(self):*
> *        return self.song*
>
> now what I want to do at django admin side that the string added
> in*"String" *model should be saved in Song_Wors_count model and
> string should be splitted in a single word and frequency should be
> counted this way:
>
> word word_freq
> word1 10
> word2 15
> word3 20
>
> I need Urgent help please.
> -- 
> 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/f53fc668-ca86-4c51-8d4c-673dee3d180cn%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/CAKPY9pkPqSbN0OoxVyQ%2BYcfqq2fRX1NDWqpdyo-KmOG2X_vYeQ%40mail.gmail.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.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/3921f39e-60d9-0e67-87ff-c8684bafc8f4%40oneilinteractive.com.


Re: can Django replace PHP ?

2021-06-28 Thread 'Peter van der Does' via Django users
Django !== PHP

Python is like PHP

Django is like Laravel


On 6/28/21 2:43 PM, Ajeet Kumar Gupt wrote:
> Django is a best in web development as well most secure in comparison
> to php? 
>
> On Mon, Jun 28, 2021, 7:09 PM Ahmed omar miladi
> mailto:ahmedomarmil...@gmail.com>> wrote:
>
> today django is the best for all web application
>
> Le lun. 28 juin 2021 à 14:17, Krishna Adhikari
> mailto:krishd...@gmail.com>> a écrit :
>
> Hello all  my seniors 
>
> I am doing Data Science programming (python) for 3 years now
> in my organization I also have to develop a Web Platform to
> deeply ML models and also to develop other web applications
> together.
>
> I searched a lot of information on google, but till now I did
> not make a decision should I learn PHP or I can handle it all
> with Django?
>
> *can we solve all kinds of web application problems with
> Django without learning PHP ?? *
> *or PHP also recommended.*
>
> Thank you all 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/f2007209-a90e-4a08-8d03-b2b3a1007e1en%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/CAE3Dc2N6CWH5w%3DTEpZRbh7tGv2jc06xBUO4Ym9d8cUs%2BS_eORQ%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/CA%2BTqRsvXBgYjvpArmyCx4ANUHpm49jQBr9E5N1jD51EshA8Mkg%40mail.gmail.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.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/34198848-2598-c928-e720-c26ad9e4bfa8%40oneilinteractive.com.


Re: Conversion and import of a pre-existing database

2021-01-07 Thread 'Peter van der Does' via Django users
Jérémy,

It all depends on the Database which route to take. Is it one table,
multiple tab;es, what are the relationship?

My plan of attack would be:

 1. Create all models in Django as you want them to be. Use the Django
standards to name your new fields [1].
 2. Let Django handle the field naming, unless you have a really good
reason to overwrite this behavior. Relationships are setup to other
models, do not add _id to these fields, Django 
 3. Create the migrations to create the models in Postgres
 4. With Django in mind write your conversion. In other words, use the
Django ORM to write data to your new DB, while using RAW sql to read
the old DB.
 5. Write the conversion as management command.
 6. If you have multiple tables start filling the tables that do no have
any relationship to other tables first and work your way up. No FK
Tables-> Tables with one or more FK to an already existing table


[1] -
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#model-style


On 1/7/21 1:05 AM, Jérémy Garniaux wrote:
> Hi,
>
> I'm working on my first Django project. Already read the tutorial but
> following along it to be sure not to miss anything.
>
> I've been asked to rebuild a pre-existing website. It's basic in
> functionality: various users create complete descriptions of heritage
> items in the admin area, and the public page display the description,
> mostly in text format, sometimes with images too. The final user can
> navigate the items on the public page.
>
> The data model contains many different classes and variables - it's
> well structured and doesn't need to change.
>
> The data is stored into a MS SQL Server database. The new website will
> use PostgreSQL, so I need to convert the MSQSQL database and import it
> into PostgreSQL. I'm aware of inspectdb but I decided to manually
> write models.py from the ground to get acquainted both with the data
> and with django models.
>
> What I'd like to know is:
>
> - Should I work on the conversion and import of the MSSQL database
> into PosgreSQL without thinking about Django at this stage?
>
> - I read that Django will add "_id" at the end of the field names.
> Should I worry about that? Or should I leave in PgSQL the same field
> names there was in MSSQL? How should I name my variables in models.py
> then?
>
> - Any other advice will be very welcome :)
>
> Thanks a lot for your help,
>
> Jeremy
>

-- 
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/8f0a8220-a05e-d81f-781c-c30c1f4ba0c2%40oneilinteractive.com.


Re: configure nginx

2020-06-22 Thread 'Peter van der Does' via Django users
There's already a process running listening on 0.0.0.0:80


On 6/21/20 12:21 AM, Giovanni Silva wrote:
> I have an Error:
>
> nginx.service - A high performance web server and a reverse proxy server
>      Loaded: loaded (/lib/systemd/system/nginx.service; enabled;
> vendor preset: enabled)
>      Active: failed (Result: exit-code) since Sun 2020-06-21 06:17:48
> CEST; 35s ago
>        Docs: man:nginx(8)
>     Process: 26937 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
> master_process on; (code=exited, status=0/SUCCESS)
>     Process: 26938 ExecStart=/usr/sbin/nginx -g daemon on;
> master_process on; (code=exited, status=1/FAILURE)
>
> Jun 21 06:17:45 vmi404911.contaboserver.net
>  systemd[1]: Starting A high
> performance web server and a reverse proxy server...
> Jun 21 06:17:45 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80  failed (98: Address already
> in use)
> Jun 21 06:17:46 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80  failed (98: Address already
> in use)
> Jun 21 06:17:46 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80  failed (98: Address already
> in use)
> Jun 21 06:17:47 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80  failed (98: Address already
> in use)
> Jun 21 06:17:47 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80  failed (98: Address already
> in use)
> Jun 21 06:17:48 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> still could not bind()
> Jun 21 06:17:48 vmi404911.contaboserver.net
>  systemd[1]: nginx.service:
> Control process exited, code=exited, status=1/FAILURE
> Jun 21 06:17:48 vmi404911.contaboserver.net
>  systemd[1]: nginx.service: Failed
> with result 'exit-code'.
> Jun 21 06:17:48 vmi404911.contaboserver.net
>  systemd[1]: Failed to start A
> high performance web server and a reverse proxy server.
>
> Can anyone help -me?
>
> -- 
> */Giovanni Silva/*
> +55 31 9 9532-1877
> -- 
> 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/CABO2r9fXi%3DLK0pRp5UQ%2B5r8mZeNYPwGr6TLwQLRZ%2BbZKMqt5ow%40mail.gmail.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.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/888d413f-0bfb-51ea-c37c-9abc48ab64b0%40oneilinteractive.com.


Re: Outsourcing of django code for new startup

2019-12-27 Thread 'Peter van der Does' via Django users
You get what you pay for:

https://www.youtube.com/watch?v=6-ksI6FWST4

On 12/27/19 9:08 AM, sandeep kumar wrote:
> Hi All,
>
> I am setting up a startup and looking for any django group who can
> develop some of our code and manage the existing code. We are looking
> for India-based budget option as we have very limited fund available.
>
> Attached is a basic description of the project.
>
> Feel free to write to me at skc.ku...@utoronto.ca if case you can
> manage these projects.
>
> Thanks,
> Sandeep
> -- 
> 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/65507c9b-fac7-4884-a9b5-f0334d77b7e9%40googlegroups.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.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/e693969c-5798-b533-9757-13a3c61b3ad2%40oneilinteractive.com.