Issue with ManyToMany Relations

2019-03-01 Thread Julio Cojom
I'm writting 2 models with ManyToMany Relations, first I make a model to list all my requirements class Requirements(models.Model): requirement = models.CharField(max_length=150) def __str__(self): return self.requirement So in this example my list of requirements will be: - Personal ID

Re: Problems with first program

2019-03-01 Thread Julio Cojom
If you use sublime text, try this, right down corner, it says "Tab size" -> Convert Indentation to Tabs. [image: Sin título.png] El jueves, 28 de febrero de 2019, 17:14:33 (UTC-6), Edvani Pascoal escribió: > > hey guys I'm beginner on django I never worked with this framework before > and then

Re: fesherstructural error

2019-04-09 Thread Julio Cojom
If you're using virtualenv, then u need to activate before running manage.py, to activate, use workon . Maybe you only installed Django in your virtualenv and not in your system. Regards! El mar., 9 abr. 2019 a las 13:20, sachin thakur (< sachin.thakur9...@gmail.com>) escribió: > Create your

Re: Can Anyone Please Provide djago-select2 Documentation

2019-05-15 Thread Julio Cojom
ontrib.sessions', >> 'django.contrib.messages','django.contrib.staticfiles','newapp', >> #My App Name]* >> >> >> *I downloaded PAckage * >> * git clone https://github.com/applegrew/django-select2.git >> <https://github.

Re: Can Anyone Please Provide djago-select2 Documentation

2019-05-15 Thread Julio Cojom
Hi, I used a package exclusive for admin, it call django-select2-admin and it's magic. Only register in installed apps and that's all. Regards. El mar., 14 de may. de 2019 11:12 p. m., Balaji Shetty < balajishe...@gmail.com> escribió: > Hi > > I need Cascading drop down list in Django Admin

Re: Is it Possible to run django locally without internet connection

2019-05-07 Thread Julio Cojom
I strongly recommend install some web server like mod_wsgi-express, guinicorn, openlitespeed to serve files, even if its local. Regards. Julio C. El mar., 7 may. 2019 a las 9:46, Idris Adegbite () escribió: > Good day guys, Please can i run django on laptop without internet > connection. >

Re: Select2 field breaks in admin when extending change_form.html

2019-04-18 Thread Julio Cojom
Hi sir, There is a library exclusive for admin, his name it's something like select2 admin , search it, I used it a couple times and only requires that you add it to your settings.py Regards! On Thu, Apr 18, 2019, 11:51 AM Jason Burke wrote: > Greetings all, > > I'm working on a project, and

Re: I have created a Django App, How to create a Django App Launcher?

2019-04-09 Thread Julio Cojom
Django Is a web application, I guess if you create a shortcut of your browser with the URL of your app, that will be fine. Even you can change the icon to make a distinction between your app and the real browser. If you want to those scripts run every n hours or minutes to maintain your app feed

Re: Server Error (500)

2019-04-09 Thread Julio Cojom
If it's development servers or localhost , allow DEBUG=True, that will help you a lot every time that you found this issues. Assuming that you use git, if you use localhost before push your changes, then the shell where you run "manage.py runserver" will show you specific data about your problem.

Re: Hosting para demostración

2019-08-09 Thread Julio Cojom
Pythonanywhere, incluso con instancia de mysql El vie., 9 de agosto de 2019 11:57 a. m., Gabriel Araya Garcia < gabrielaraya2...@gmail.com> escribió: > ¿Donde y como subir mi proyecto básico en calidad de demostracion?. Es muy > basico, con apenas 60 registros, en Sqlite3. Necesito mostrar el

Re: Django admin no recuerda mi superusuario

2019-10-13 Thread Julio Cojom
Pensé en la BD pero cuando ejecuta manager.py eso debería de afectar la base que tenga en settings. Sera que hay 2 proyectos y ejecutas sobre uno pero necesitas los resultados en otro? Has revisado la tabla de usuarios en la BD para ver si está creado el registro? El dom., 13 de octubre de 2019

Re: Defining frequently used HTML fragments as constants?

2019-10-14 Thread Julio Cojom
I guess it will be in your views , if it's used in more than 1 def maybe you can use a def who return your variable and use it in for loop to call it many times. El lun., 14 de octubre de 2019 10:27 a. m., Spiff escribió: > Hi, I'm reading up on how to properly output html. Let's say I have a

Re: How to clone or run your project on local machine by cloning/connecting to Linode Server. what are requirements need to be installed on your Machine.

2020-05-14 Thread Julio Cojom
It must have a requirements.txt , so run pip install -r requirements.txt. Next run all django stuff (manage.py makemigrations, manage.py migrate, manage.py runserver) if requirements.txt isnt in the git repo, you can do it running manage.py runserver and watching every error it throws and

Re: NGINX + GUNICORN

2020-09-11 Thread Julio Cojom
It depends, some people use virtualenvs, so you need to install gunicorn in each project. https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 this might help, just change dependencies install to fit your os. In my case, I deploy

Re: MultiValueDictKeyError at

2020-09-23 Thread Julio Cojom
Readonly field and disbled field never send on form post. You should workaround this, for example, with a css class. .disabledfield{ pointer-events: none; opacity: 0.4; } or enabling with js on send click. Regards. El mié., 23 sept. 2020 a las 13:20, coolguy () escribió: > please

Re: Can You please help me out!!!

2020-05-31 Thread Julio Cojom
Boolean field on notification model that change status when click or view the notification , this perhaps need an asynchronous task with jQuery or celery Rewards El vie., 29 de mayo de 2020 9:28 p. m., meera gangani < meeragangan...@gmail.com> escribió: > I Want to implement Mark all a read in

Re: AttributeError when returning post.title in a comment model

2020-05-31 Thread Julio Cojom
Try '{0}-{1}'.format(var1, var2) Check in the console in what line it's throwing the attribute error Rewards El vie., 29 de mayo de 2020 5:10 p. m., Ahmed Khairy < ahmed.heshamel...@gmail.com> escribió: > I was working on a comment section for post and was getting an > AttributeError when I

Re: ERROR

2020-08-09 Thread Julio Cojom
It is js error, show the script part. It seems like you referenced a variable before declare it. On Sun, Aug 9, 2020, 8:50 AM Yemin Sajid wrote: > I think the error is from the frontend javascript code. Can u share > snippets of that code? > > On Sun, Aug 9, 2020 at 8:30 AM Kovy Jacob wrote: >

Re: Need to build a functionalty:- File Explorer like sFTPClient/Filezilla (Preferred lang- python with Django) in web application to access file system of any server with any OS

2020-08-02 Thread Julio Cojom
This is a frontend job, I searched this a time ago and in the search, there are some tutorials with JavaScript frameworks like angular or Vue. https://medium.com/js-dojo/how-to-build-a-file-manager-storage-web-app-with-django-rest-framework-and-vue-js-e89a83318e9c On Sun, Aug 2, 2020, 10:34 AM

Re: Is there a package that enables one Django project to authenticate via a second Django project?

2020-06-30 Thread Julio Cojom
What about using DRF with token login? El jue., 25 jun. 2020 a las 13:26, Dave R () escribió: > I keep running into this problem and started working on a custom > solution... but before I spend hours on this, I want to confirm that such a > package/solution doesn't already exist. > > I was

Re: Custom-DRF-Response

2020-07-04 Thread Julio Cojom
How is your model and your serializer? El sáb., 4 jul. 2020 a las 6:00, Ronaldo Mata () escribió: > Thx for your answer.  > > but this brings me to the second point. If I do that I must to rewrite all > method in my API Class Based Views to response with this format. I think > that is not the

Re: Training Resources for using JavaScript with Django

2020-06-18 Thread Julio Cojom
in your template, open a js block {% block javascript %}

Re: Need help

2020-06-14 Thread Julio Cojom
Show your file please El dom., 14 de junio de 2020 12:38 p. m., Deborah escribió: > good evening > the tags that I use in the html file, appear on browsers when I launch the > server, what to do ??? > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: Deploy Django Ubuntu

2020-06-19 Thread Julio Cojom
nginx + gunicorn. https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 El vie., 19 jun. 2020 a las 12:59, Giovanni Silva () escribió: > Dears, > > How is the best way to deploy a Django App in the Ubuntu VPS? > Can you get me

Re: Need help

2020-06-14 Thread Julio Cojom
Based on the url of the browser, seems like python isn't interpreting the HTML file. This url isn't friendly, django not shows ".html" when you browse inside your app. Are you running with py manage.py runserver? Why the port is 63342? Usualy the port is 8000 unless you explicit changed it. Try

Re: pass a parameter into sql raw string and execute django

2020-12-19 Thread Julio Cojom
Hello First, create a query.py , just for order. [image: image.png] and declare a function with the parameters you want to receive. Then, in your views.py [image: image.png] you need to import connection from django.db finally , you can iterate over the rows fetched with one for loop.

Re: Desperately need help.

2021-06-15 Thread Julio Cojom
Pretty easy to be honest. The web page need an http response and it's give none instead. :) If you don't know about the code, maybe you should hire a developer or learn by yourself. El mar., 15 de junio de 2021 3:14 p. m., Ken Smith escribió: > There is the issue to solve that is the result

Re: Deploy Django app using cpanel

2021-06-23 Thread Julio Cojom
cPanel it's a pain to deploy python applications, better change to a vps with digitalocean or something similar. El mié., 23 de junio de 2021 11:37 a. m., Franck Tchouanga < ftchoua...@gmail.com> escribió: > I see. > > On Wed, Jun 23, 2021, 11:38 AM Eugene TUYIZERE > wrote: > >> Dear Franck,

Re: Hi django

2021-06-24 Thread Julio Cojom
Django framework uses urls to math the html files. This work with the same syntax of static files, you would use {% url 'app:viewname' %} to render any page with Django. You should check the docs of urls to understand how it works and get this done. Regards El jue., 24 de junio de 2021 9:00 a.

Re: No reverse match at /

2021-07-06 Thread Julio Cojom
For what I can see in the issue, you're passing 2 values to the url (id , topic) Maybe the error its for the topic because of the value (/Subject/Django) try to sanitize the value after store it in the database, because it try to get the url example.com/3//Subject/Django where 3 its the id or pk

Re: SChedule email

2021-07-01 Thread Julio Cojom
I remember a python library called django-cron, it's stable in Linux environments El jue., 1 de julio de 2021 6:54 a. m., divya murugulla < divyamurugu...@gmail.com> escribió: > HI, > > I wanted to schedule a email every jan and aug 6 monthly basis without > celery using settings.py. Can anyone

Re: Employee matching query does not exist

2022-01-05 Thread Julio Cojom
of an existing record in the database. Also you can print self.request.POST to see all the data that I has, that is a dictionary so you can see they keyword you need and the data in brings. Regards. Julio Cojom. El mié., 5 de enero de 2022 7:53 a. m., Rey Ondiyo escribió: > Django don't

Re: django-oscar customisation

2021-12-09 Thread Julio Cojom
You need to fork the app and create a similar protect structure inside your forked app, then you can start customizing. Django Oscar isn't an easy way to start with Django El jue., 9 de diciembre de 2021 8:46 p. m., Ryan Nowakowski < r...@fattuba.com> escribió: > Try running the sandbox

Re: translat using oscar framework

2022-01-05 Thread Julio Cojom
where documentation mention. Last, run manage.py makemessages with the flags you need. Remember, you're dealing with python not with Django as programming language. If you don't have idea of what I'm writing, start with a simpler project. Regards Julio Cojom El mié., 5 de enero de 2022 3:14 p. m., frank

Re: How to delete user salary record , but want to keep history till deleted date

2022-01-07 Thread Julio Cojom
before django-simple-history. the package records all history for models and objects and let you query that information. Regards, Julio Cojom. El vie., 7 de enero de 2022 9:48 a. m., Feroz Ahmed escribió: > Hi, Pankaj > thanks for the tips! > > i try all the way, > it not succe

Re: request.POST.getlist('xxx') only has one value in ajax request for many2many

2022-01-17 Thread Julio Cojom
I remember having a problem like that once, in your views print the hole dictionary "print(request.POST)", you should see all the values of the field you want as list, not just one. Then instead of getlist try just get, request.POST.get('field_here') Let me know how it goes El lun., 17 de enero

Re: SMTP Authentification error

2022-04-27 Thread Julio Cojom
Seem pretty clear, you are calling db user and db password instead of email and email password, *EMAIL_HOST_USER = os.environ.get('DB_USER')* *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')* Regards, Julio Cojom El mar, 26 abr 2022 a las 23:38, 'Delvin Alexander' via Django users

Re: Best digital ocean plan for a production server

2022-07-11 Thread Julio Cojom
so I learned that a hard way Regards, Julio Cojom El sáb, 9 jul 2022 a las 21:20, Ram () escribió: > Hi, > > We are planning to launch our application in production once all the > testing is completed after deployment to our development server. We are > using Jenkins CI autom

Re: its urgent...

2022-06-17 Thread Julio Cojom
You can try with rpa framework, for rpa, is better if you use xpath Regards El El vie, 17 de jun. de 2022 a la(s) 11:10, Abhinandan K < abhinan...@snakescript.com> escribió: > is anybody know how to scrap all businesses from google maps and save into > csv with selenium and whenever search

Re: DRF question

2022-07-20 Thread Julio Cojom
Hi Ram, Aditional to all the suggestions, please keep in mind django-filters as they are important to filter data in your api requests Regards, Julio Cojom El mié, 20 jul 2022 a las 20:37, Michael Thomas (< michael.thomas.s...@gmail.com>) escribió: > There's no reason at all that

What do you do with large project and forms?

2022-08-30 Thread Julio Cojom
I have a large project and forms.py per app is bigger than I thought with 3k+ lines in each file, I'm looking for options to make a good scalation structure, does anyone have experience with this? What do you do to organize your forms in your projects? -- You received this message because you

Re: JSON files. How is it done?

2022-09-22 Thread Julio Cojom
.readthedocs.io/en/latest/ Regards, Julio Cojom El jue, 22 sept 2022 a las 4:23, Matheus Bon () escribió: > Hi! > > I'm lost in a question of my project, I see so many methods on the > internet but none work for me (maybe I'm implementing it wrongly) > > But, I would like to know if

Re: group

2022-09-27 Thread Julio Cojom
This shit again, STOP IT. El mar, 27 sept 2022 a las 9:29, Alfredo Yong () escribió: > Please, me too... > > +51995070400 > > On Tue, Sep 27, 2022 at 9:43 AM Giovanni Silva wrote: > >> Please, add me too… >> >> +5531995321877 >> >> Em 27 de set. de 2022, à(s) 02:27, Adetunde ADESUNBO ALAO < >>

Re: Why do we need Django rest framework when our conventional django do what we want?

2022-07-31 Thread Julio Cojom
There are a couple of projects built in Django for this, for example Django-Oscar or saleor(community version), the last one is a tech stack a little bigger but really fast and customizable. If you want to start one from scratch, be sure to check both projects as they have good abstraction

Re: How to use choices in model field

2022-11-02 Thread Julio Cojom
When you change the status to Verified, you are only changing the object instance in memory, to save it to the database, you need to call the method save. verification.save() at the end should make it work El El mié, 2 de nov. de 2022 a la(s) 10:23, Aaryan R Soni < aaryanrson...@gnu.ac.in>

Re: Illegal Hardware Instruction

2023-04-11 Thread Julio Cojom
Is your computer an apple silicon mac? El mar, 11 abr 2023 a las 14:21, Mesfin Haftu () escribió: > Hello There, > > This is Mesfin, I am working on a project of deep learning to classify > images. I design the model, train, fit, evaluate and predict with my model. > After that I save the