Re: Django vs Spring decision

2022-04-30 Thread misraX x
If you have quite of experience in Java, then go for it and use Spring. Django is a great framework and I use it myself in a day to day base, but if you want to get the job done and finish your project with the experince you already have then Django isn't the right choice. On Sat, 30 Apr 2022, 8:

Re: SMTP Authentification error

2022-04-27 Thread Lakshyaraj Dash X-D 25
Check whether you have turned on less secure apps or not. On Wed, Apr 27, 2022, 11:07 'Delvin Alexander' via Django users < django-users@googlegroups.com> wrote: > Hello everyone, > > May you please assist in informing me on what i need to do to resolve this > issue. > > - *SMTPAuthenticationErro

Re: How to allow user only update who belong to that post ?

2022-04-07 Thread Lakshyaraj Dash X-D 25
Just try out the lines below if request.user.is_authenticated: user = request.user if (post.author.username == user): # your code here else: # show yor error that you cannot edit other user's post else: return redirect ("/") On Thu, Apr 7, 2022, 23:14 Kasper

Re: Static files not found

2022-02-03 Thread Lakshyaraj Dash X-D 25
. >>> >>> *WSGI* >>> import os >>> >>> from django.core.wsgi import get_wsgi_application >>> >>> os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Web_bridge.settings') >>> >>> application = get_wsgi_a

Re: Static files not found

2022-02-03 Thread Lakshyaraj Dash X-D 25
et_wsgi_application() > > *SETTINGS* > import os > from pathlib import Path > > os.environ['ENV'] = 'PRODUCTION' > > BASE_DIR = Path(__file__).resolve(strict=True).parent.parent > > DEBUG = False > SECRET_KEY = > 'django-insecure-eqlug^3e2

Re: Potential bug: mysql-connector-python Django 3.2.11 and third-party packages that populate the Admin Site

2022-02-02 Thread Lakshyaraj Dash X-D 25
Use only the mysqlclient package to populate your admin site with MySQL database. You can watch this tutorial also : https://youtu.be/SNyCV8vOr-g On Thu, Feb 3, 2022, 06:19 Richard Mayebo wrote: > Platform: Observed on Ubuntu 20.04 > > >1. Install MySQL (Observed on 5.7 and 8.0) >2. Cre

Re: django module not found

2022-01-24 Thread Lakshyaraj Dash X-D 25
If you're using virtual environment then try creating a new virtual environment and install django again in your virtual environment. On Mon, Jan 24, 2022, 19:28 'Delvin Alexander' via Django users < django-users@googlegroups.com> wrote: > Hello, > > I am new and just started to learn Django. I a

Re: django module not found

2022-01-24 Thread Lakshyaraj Dash X-D 25
Try restarting your code editor or reinstall python. On Mon, Jan 24, 2022, 19:28 'Delvin Alexander' via Django users < django-users@googlegroups.com> wrote: > Hello, > > I am new and just started to learn Django. I am attempting to create my > first application and ofcourse progress to a website

Re: How to send data from views.py to index.html

2022-01-21 Thread Lakshyaraj Dash X-D 25
You can send the data through a dictionary or you can use json response and fetch the json response through javascript. On Fri, Jan 21, 2022, 20:35 Kabir wrote: > How to we use views.py to send data to index.html? > > On Thursday, January 20, 2022 at 11:59:17 AM UTC+5:30 Leo guitar girl > wrote:

Re: How to resolve this error? can anyone please help me?

2022-01-13 Thread Lakshyaraj Dash X-D 25
Please share me your code privately so that I can solve your proy as soon as possible. On Thu, Jan 13, 2022, 20:16 sharath p wrote: > > Environment: > > > Request Method: GET > Request URL: http://127.0.0.1:8000/ > > Django Version: 4.0.1 > Python Version: 3.10.1 > Installed Applications: > ['dj

Re: static files not getting served

2021-12-05 Thread Lakshyaraj Dash X-D 25
Inside settings.py, Write these two lines of code and your static files will be served import os STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') On Sun, Dec 5, 2021, 18:49 Rahul wrote: > see brother i am not shouting at all . i am using heroku for deployment > and i didnt got any big erro

Re: Where to deploy django application

2021-11-29 Thread Lakshyaraj Dash X-D 25
It's advisable that don't directly deploy it from GitHub as your secret key will be public to the GitHub community. On Mon, Nov 29, 2021, 14:19 Eugene TUYIZERE wrote: > Dear Team, > > This is just for advice. > > I would like to know any other hosting provider that uses GitHub to update > the ap

Re: Where to deploy django application

2021-11-29 Thread Lakshyaraj Dash X-D 25
Was the documentation helpful ? You can prefer this django playlist also : https://youtube.com/playlist?list=PLK8cqdr55Tsv-D2HMdrnD32oOVBNvmxjr On Mon, Nov 29, 2021, 15:05 Lakshyaraj Dash X-D 25 < dashlakshyaraj2...@gmail.com> wrote: > Here's the official documentation : > https

Re: Developing django apps in jupyter

2021-11-29 Thread Lakshyaraj Dash X-D 25
I use visual studio code and pycharm both ides On Mon, Nov 29, 2021, 18:52 'MH' via Django users < django-users@googlegroups.com> wrote: > Hi everyone > > I have built a few django apps, but on a very basic level and only for my > own usage. Little helpers for self management. So far I just used

Re: Where to deploy django application

2021-11-29 Thread Lakshyaraj Dash X-D 25
29 Nov 2021 at 11:05, Lakshyaraj Dash X-D 25 < > dashlakshyaraj2...@gmail.com> wrote: > >> You can try out digital ocean or Amazon AWS. But digital ocean is cheap >> if you want to start, you can start at $5. >> >> On Mon, Nov 29, 2021, 14:19 Eugene TUYIZERE >&g

Re: Where to deploy django application

2021-11-29 Thread Lakshyaraj Dash X-D 25
You can try out digital ocean or Amazon AWS. But digital ocean is cheap if you want to start, you can start at $5. On Mon, Nov 29, 2021, 14:19 Eugene TUYIZERE wrote: > Dear Team, > > This is just for advice. > > I would like to know any other hosting provider that uses GitHub to update > the app

Re: facing problems while deploying the project some error with static files

2021-10-27 Thread Lakshyaraj Dash X-D 25
Just do one thing, write STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') in settings.py. Ok. This will definitely solve your problem. I've an experience of deploying my django projects. If any problems then message me at dashlakshyaraj2...@gmail.com. On Wed, Oct 27, 2021, 18:34 'Mr. Aryan Shar

Re: facing problems while deploying the project some error with static files

2021-10-27 Thread Lakshyaraj Dash X-D 25
Just do one thing, write STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles'). Ok. This will definitely solve your problem. I've an experience of deploying my django projects. If any problems then message me at dashlakshyaraj2...@gmail.com. On Wed, Oct 27, 2021, 18:34 'Mr. Aryan Sharma 4-Year B.Tec

Re: help

2021-10-25 Thread Lakshyaraj Dash X-D 25
First do one thing that try uninstalling django. If it doesn't work, then run python -m pip install django On Tue, Oct 26, 2021, 01:29 Planet X wrote: > hey there i can not figure out while django is installed to but its > showing django-admin is not recongnized as an internal

help

2021-10-25 Thread Planet X
hey there i can not figure out while django is installed to but its showing django-admin is not recongnized as an internal or external command please help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: django.db.utils.OperationalError: no such table abc

2021-10-22 Thread Lakshyaraj Dash X-D 25
Bro, you will need the initial migration in order to make another migration. On Fri, Oct 22, 2021, 18:37 MR INDIA wrote: > > After deleting the migration to make it again just Try Running the > makemigrations command. > On Friday, 22 October 2021 at 06:58:12 UTC+5:30 dashlaksh...@gmail.com > wr

Re: django.db.utils.OperationalError: no such table abc

2021-10-21 Thread Lakshyaraj Dash X-D 25
Just search for it in the recycle bin , if you have not permanently deleted the migration, else give me the code in my personal gmail dashlakshyaraj2...@gmail.com and I will correct it. On Fri, Oct 22, 2021, 01:38 Ammon Quackenbush wrote: > I think you are right. I did delete the initial migrati

Re: django.db.utils.OperationalError: no such table abc

2021-10-20 Thread Lakshyaraj Dash X-D 25
It will happen if you have deleted the initial migration or check your settings properly. On Thu, Oct 21, 2021, 04:21 Ammon Quackenbush wrote: > I am working on a django project and I am getting this error when I > attempt to run the "python manage.py makemigrations" command: > > django.db.utils

Re: django datatable

2021-10-20 Thread Planet X
hey this is my code On Wed, Oct 20, 2021 at 11:09 PM Lakshyaraj Dash X-D 25 < dashlakshyaraj2...@gmail.com> wrote: > You can use tailwind css, material ui, bootstrap or if you want to use > custom css, just inspect the element and target the id of the element and > add custom

Re: django datatable

2021-10-20 Thread Lakshyaraj Dash X-D 25
You can use tailwind css, material ui, bootstrap or if you want to use custom css, just inspect the element and target the id of the element and add custom css. On Wed, Oct 20, 2021, 11:26 Eugene TUYIZERE wrote: > Please suggest a good CSS for the datatable below > [image: image.png] > Regards,

Re: HELP ME OUT

2021-10-20 Thread Lakshyaraj Dash X-D 25
Do one thing... In the templates inside {% static 'css/style.css' %} make it {% static 'prsquare/css/style.css' %} On Wed, 20 Oct, 2021, 2:45 pm Planet X, wrote: > I can not connect to my static files here i am sending my screen shoot of > the setting and others links

Re: HELP ME OUT

2021-10-20 Thread Lakshyaraj Dash X-D 25
Change the assets to static On Wed, 20 Oct, 2021, 2:45 pm Planet X, wrote: > I can not connect to my static files here i am sending my screen shoot of > the setting and others links to the my base.html whats my fault please do > help > > -- > You received this message because

HELP ME OUT

2021-10-20 Thread Planet X
I can not connect to my static files here i am sending my screen shoot of the setting and others links to the my base.html whats my fault please do help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop re

Re: What it takes to bring web application to a mobile app

2021-10-19 Thread Planet X
Hey there all all you Mind-blowing people i am new in django i am trying to set my view and urls of app and project i tried lots of time it showing errors please help me out to do i want to learn with the help of your On Tuesday, October 19, 2021 at 2:31:53 PM UTC+5:30 ram.mu...@gmail.com wrot

Re: Can you help me sharing link documentation to learn django ?

2021-08-28 Thread Lakshyaraj Dash X-D 25
The official documentation is the best one :- https://docs.djangoproject.com/en/3.2/ Any other help then please send it to dashlakshyaraj2...@gmail.com On Sat, 28 Aug 2021, 06:36 Thuan Nguyen Thi Bích, wrote: > Hi everyone > I'm not a developer. I'm a member of team Product. > I want to use djan

Important Announcement

2021-07-21 Thread Mr. X Offencer
Dear Django-users@googlegroups.com, Hii this is Mr.Xoffencer, I am a Python Django Developer and also a certified Cyber security researcher. I am working as a Python programmer since 3 years and developed many projects for my international clients and one this that help me alot in my journey as a p

Re: Need Django or Flask developer in India - minimum 5+ years experience

2021-04-20 Thread Mr. X Offencer
*Important announcement:* *In the month of July, I have my birthday, so for the occasion of my birthday, I am launching an event. In this event, if any visitor of my website follows the following steps will get a secret Road map to get placed in any IT COMPANY. If any student follows this road map

Re: Have you experienced the thing I have done like the following.

2021-03-26 Thread Mr. X Offencer
Are you running your manage.py runserver command in right directory On Fri, 26 Mar 2021, 19:06 Sangbom Suhk, wrote: > Hi guyes! > > Now I'm trying to install django framework and make python-based web. For > this purpose, I installed apache2, python3.8.5 and libapache2-mod-wsgi-py3, > and set a

Deploy Django project on AWS EC-2

2021-03-18 Thread Mr. X Offencer
Hey can anybody help me to Deploy Django Project on Aws. -- 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

Re: Hello from a new user

2021-03-17 Thread Mr. X Offencer
You can search on YouTube for django tutorials. Some of which are Django by code with harry - In Hindi Language Django by code with harry - In English Language On Wed, 17 Mar 2021, 20:57 Mahmood Ahmad, wrote: > Hello Ryan, > > You are right. I sound as if I am only looking for tutorials. > > Ind

Re: Problem with admin site

2021-03-03 Thread Mr. X Offencer
Show your model.py On Wed, 3 Mar 2021, 19:41 kolo1, wrote: > Hey > I've made some project with couples apps and now I'd like to manage by > admin site but when I try to open localhost:8000/admin I get error > """ > TypeError at /admin/'tuple' object is not a mappingRequest Method: > GETRequest U

Re: template is not visible properliy

2021-02-27 Thread Mr. X Offencer
Bro show me your file structure. On Sun, 28 Feb 2021, 02:56 Kasper Laudrup, wrote: > On 27/02/2021 12.19, Mayursinh Raulji wrote: > >i have download template from google and try to load in Django with > > static file but in browser not show properly. show only half template > > but In my

Re: Please help. ImportError with django 3.1

2021-01-04 Thread Mr. X Offencer
why are you using *from hello.views import index* instead of *from . import views* On Mon, Jan 4, 2021 at 6:54 PM Gasar Iyali wrote: > Hi > Please I need your help. > I have just installed django and when I try to run django I get this error > message and nothing comes up in my browser. > This

Re: Django has Future?

2020-12-13 Thread F x
if you face small companies or startups , maybe Node js will be good to get the job. but speaking of Django or python project development , I would like to recommend big companies. On Sun, Dec 13, 2020 at 9:16 AM Dhruvil Shah wrote: > I am currently confused that Django has Future or not. Becau

Re: prefetch_related with slices

2020-09-19 Thread misraX x
I believe you are searching for queryset and SQL limits, if so take a look at https://docs.djangoproject.com/en/2.2/topics/db/queries/#limiting-querysets On Fri, Sep 18, 2020 at 7:00 PM אורי wrote: > Hi, > > I have a code with a query: > > qs = User.objects.active( > gender__in=user.speedy_m

Re: Error while using manage.py

2020-06-22 Thread misraX x
Make sure you have sqlite installed on your Windows machine. You can install it from the link below: https://www.sqlite.org/download.html On Mon, Jun 22, 2020 at 5:11 PM Franz Ulenaers wrote: > please install sqlite3 > > Op maandag 22 juni 2020 16:17:54 UTC+2 schreef NAVEEN RS: > >> [image: Scr

What's the difference between using mariadb as database and using mysql?

2019-02-28 Thread x w
I'm using a Linux distribution called manjaro and mysql has been replaced with mariabd in the official repository. When I use maridb as database, what is the difference with mysql? Is there something special that I should pay attention to? -- You received this message because you are subscribe

RE: Trying to print data containing a space in html

2017-01-10 Thread Anjali Mk -X (anmk - WIPRO LIMITED at Cisco)
he code details: nbsp.py: from django import template from django.utils.safestring import mark_safe register = template.Library() @register.filter() def nbsp(value): return mark_safe(" ".join(value.split(' '))) html: {% load nbsp %} {% for x in data %} {{ x | nbsp

RE: Django Browser issue

2016-12-13 Thread Anjali Mk -X (anmk - WIPRO LIMITED at Cisco)
Hi, Thanks for the reply. I donno how to connect to manage.py from host server since Django code is not placed in that host. Hosting server is connecting to code through wsgi. Please let me know if you know how to connect then I will try and check. Regards, Anjali [banner7] Anjali Mk Enginee

Re: django-admin.py --> permission denied (shared server deployment)

2015-05-19 Thread x
r installing the miniconda distribution of python that is used > in the scientific computing community. Assuming you are on a linux server, > you can do this with > > wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh > chmod +x ./Miniconda-latest-Linux-x86_64.sh &g

django-admin.py --> permission denied (shared server deployment)

2015-05-19 Thread x
hello hello, finally i was able to install a python instance on my shared-server. it was also impossible to pip-install django. yeah. but right then - so close already - i got a permission problem again. i couldn't figure out exactly what django-admin.py wants to do/execute and why it's not

Re: Problem with the tutorial.

2012-04-06 Thread x...@poczta.fm
# Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. Not 'django.db.backends.sqlite3' but 'sqlite3'. On 5 Kwi, 21:28, "J. Cliff Dyer" wrote: > You might be overriding the DATABASES setting later on in your settings > file, or you might not be accessing the settings file yo

Hierarchical Django Ajax Forms

2012-01-28 Thread D X
I needed to build a form where the user can input a geographical location, with fields for country, state, city, neighborhood. I wanted the form to use AJAX, so that the only valid fields would appear as the user selected fields higher in the hierarchy. It sounded like a task that should be easy

Re: Looking for a Django Developer

2010-05-21 Thread Tom X. Tobin
On Fri, May 21, 2010 at 11:40 AM, Juan Hernandez wrote: > why don't we talk about our lives in this lists? > PLEASE! > Tis is a technical list... use djangogigs instead!!! Job postings are perfectly relevant for django-users. (Although follow-up replies to job postings should be handled via

The Onion wants you! (If you're a front-end developer, that is.)

2010-05-21 Thread Tom X. Tobin
The Onion is looking for a front-end web developer to join our web technology team; the position is based in our Chicago office. We're looking for someone who: - is a religious fanatic about semantic markup and clean styling. - is comfortable working with templating languages. (In our case, you

Re: Installing django

2010-04-14 Thread Tom X. Tobin
On Wed, Apr 14, 2010 at 1:17 PM, Shawn Milochik wrote: > The instructions on the site are incorrect. You only use django-admin.py to > create the project. After that you use manage.py for everything else -- > including syncdb. You *can* use django-admin.py as long as you make sure DJANGO_SETTIN

Re: how to use IPC in Django??

2010-04-11 Thread Tom X. Tobin
On Sun, Apr 11, 2010 at 12:45 PM, vishwanath b wrote: > as i searched the net a lot django+IPC but i > couldnt get any code This is your problem; stop searching for *Django* and start searching for *Python*. The programming language is Python, not Django. -- You received this message becau

Re: Is the DoesNotExist exception the only way to check if an object exists?

2010-04-09 Thread Tom X. Tobin
On Fri, Apr 9, 2010 at 4:54 PM, Joakim Hove wrote: > I have never really got very friendly with exceptions, I tend to > consider them as something exceptional which "should not" happen, > whereas the fact that the database does not contain a particular key > is in my opinion something quite ordina

Re: Why is django returning only naive datetimes?

2010-04-09 Thread Tom X. Tobin
On Fri, Apr 9, 2010 at 2:48 PM, Ramiro Morales wrote: > On Fri, Apr 9, 2010 at 3:20 PM, Tom X. Tobin wrote: >> >> This reminds me that we need to open-source our time zone code.  We >> track entertainment events across several time zones, and Django's >> standard

Re: Why is django returning only naive datetimes?

2010-04-09 Thread Tom X. Tobin
On Fri, Apr 9, 2010 at 1:05 PM, Paweł Roman wrote: > I've noticed that django always fetches 'naive' datetimes from the > database. Tzinfo property on a datetime object is always set to null, > even if the database stores a value WITH a timezone. > > This is a bit tedious because such datetime can

Re: automatically import lots of modules at python manage.py shell time?

2010-03-26 Thread Tom X. Tobin
On Fri, Mar 26, 2010 at 5:45 PM, Phlip wrote: > os.environ['DJANGO_SETTINGS_MODULE'] = 'dev2_settings'  #  TODO  look > up which one My local copy actually has the following code in it: import os import re import sys m = re.search(r'^([a-zA-Z0-9_]+)-shell$', os.path.basenam

Re: automatically import lots of modules at python manage.py shell time?

2010-03-26 Thread Tom X. Tobin
On Fri, Mar 26, 2010 at 4:47 PM, Phlip wrote: > I am in anguish over watching my colleagues fire up python manage.py > shell... > > ...and then typing several incredibly long import lines before > actually getting anything done. > > These same colleagues also seem to have itchy ^C fingers, meaning

Re: Matplotlib with Django

2009-12-26 Thread heaviside x
e to the url > e.g. output: > url(r'^graph_example/(?P\d+)/(?P\w+)/$') > > and then a view: > > def myview(request, id, output): >    if output == 'image': >      # output image data >    else: >       # output html data > > 2009/12/26 heav

Matplotlib with Django

2009-12-26 Thread heaviside x
Hello, To start, this is not another how do I get matplotlib to work in Django thread. This is how do I get matplotlib to work better with django. Before I go on, let me outline what I'm doing. I'm currently working on a scientific data manager/viewer which uses matplotlib as the primary graphi

Important!!

2007-12-08 Thread Man X
Hello I will like you see this page And tell me what do you think www.Man-X.org Thank you very much --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

sending mails to users

2007-09-02 Thread T-u-N-i-X
Hey there, I'm currently developing a Django application.. When the user changes his/her mail address, an activation mail is sent. It waits until it sends the email which is not very nice.. So I guess that I should use threading for that purpose.. Any suggestions for this one ? Can't I start a t

ForeignKey and Admin

2006-07-06 Thread X-Phuture
Hello, I'm currently creating a website in Django and I have a problem to create my models. I have 2 classes : - Event : which hold the information about an event (where it take place, the number of places available, etc...) - EventDate which is used to know when an event takes place (since an e