Re: Static files is not loading while deploying the project to AWS ec2

2022-11-08 Thread Nishant Sagar
ication root directory. >> >> On Sun, Nov 6, 2022 at 11:03 AM led zee wrote: >> >>> As a recent Django new user I was having a lot of trouble with static >>> files as well. Basically couldn't get Admin CSS to work. >>> &

Re: Static files is not loading while deploying the project to AWS ec2

2022-11-05 Thread Nishant Sagar
Hi Ashutosh, Yeah I tried that as well, still not working. On Sat, 5 Nov 2022 at 1:10 PM, Ashutosh Mishra wrote: > Did you tried, python manage.py collectstatic? > > On Sat, 5 Nov, 2022, 1:05 pm Nishant Sagar, > wrote: > >> Hi all, >> >> I deployed the django

Static files is not loading while deploying the project to AWS ec2

2022-11-05 Thread Nishant Sagar
= os.path.join(BASE_DIR, 'staticfiles') STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),) Project URl - http://54.242.38.208/ Github- https://github.com/Nishant-Sagar/BaskinSolar Thank you for your help, Nishant -- You received this message because you are subscribed

Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
I want to make my form save files to a database without using the django form On Fri, 23 Sep 2022 at 12:52 PM, Sebastian Jung wrote: > Do you want change only a form or do you want also change widgets in this > form? > > Nishant Sagar schrieb am Fr., 23. Sept. 2022, > 08:32: >

Re: Regarding Django forms

2022-09-22 Thread Nishant Sagar
ishant On Fri, 23 Sep 2022 at 11:36 AM, Sebastian Jung wrote: > Hello, > > I would hire on upworks a cheap developer how show you how to implement > such thing. This is relative easy when you know how it works > > Regards > > Nishant Sagar schrieb am Fr., 23. Sept. 2022,

Regarding Django forms

2022-09-22 Thread Nishant Sagar
Hey forks, I’m in little dilemma regarding Django forms. I'm working on a project as a backend guy who doesn't know much about CSS and JavaScript so a frontend guy delivered me a form template designed using CSS, however, Django documentation suggests that it's good practice to use Django forms.

Fwd: Delivery Status Notification (Failure)

2022-09-17 Thread Nishant Sagar
Hey folks, While saving the values to the data to the database I'm getting this Field 'roof_age' expected a number but got ('1',) How can I resolve this? Here is my views.py file def form(requests): if requests.method == 'POST': name=requests.POST['name'], # roof_age= requests.POST['roof_age'], ro

Re: AttributeError: type object 'User' has no attribute 'objects'

2020-04-27 Thread sagar ninave
i got answer i was doing this: from .models import User user = User.objects.filter(pk=user_id) instead i do this: from .models import MyUser user = MyUser.objects.filter(pk=user_id) error gone On Mon, Apr 27, 2020 at 6:57 AM Kasper Laudrup wrote: > Hi Sagar, > > On 27/04/2

Re: Deploying Django Project on heroku

2020-04-25 Thread sagar ninave
romo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> sagar ninave about.me/sagarninave <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb&

Re: Deploying Django Project on heroku

2020-04-25 Thread sagar ninave
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Deployment Follow this documentation On Sat, Apr 25, 2020 at 7:16 AM sagar ninave wrote: > Do you installed whitenoise package > If not then run this command > Pip insatll whitenoise > > On Sat, 25 Apr 2020 at

Re: heroku hosting apllication error

2020-04-02 Thread sagar ninave
I just delete all process and redeployed it On Thu, 2 Apr 2020 at 4:07 PM, o1bigtenor wrote: > > > On Thu, Apr 2, 2020 at 4:01 AM sagar ninave wrote: > >> thanks for reply >> >> but problem is solved now >> >> Hmm - - - - to assist anyone else

Re: why this serializer class is here

2020-03-19 Thread sagar ninave
thanks On Tue, Mar 17, 2020 at 11:41 PM Kasper Laudrup wrote: > On 18/03/2020 18.16, sagar ninave wrote: > > is it necessary to right serializers while making post request ? > > > > No > > -- > You received this message because you are subscribed to the Google

Re: why this serializer class is here

2020-03-17 Thread sagar ninave
is it necessary to right serializers while making post request ? -- 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 vi

Re: why this serializer class is here

2020-03-16 Thread sagar ninave
i dont know? thats why i am asking On Mon, Mar 16, 2020 at 6:01 PM Suraj Thapa FC wrote: > Does it matters..? > > On Mon, 16 Mar 2020, 10:29 pm sagar ninave, wrote: > >> >> >> I want to know why this serializes class here we can write it in separate >> f

why this serializer class is here

2020-03-16 Thread sagar ninave
I want to know why this serializes class here we can write it in separate file too so why here? -- 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+

send free sms on phone and email to user

2020-03-08 Thread sagar ninave
hello community, i want to send free sms on mobile phone and email through django so how i can do it -- 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-use

Re: can you make program from this algorithm

2020-03-02 Thread sagar ninave
i just want help to know how i implement this algorithm only if anyone can do this then they can guide me. i don't want to pay anyone On Mon, Mar 2, 2020 at 4:41 AM Kasper Laudrup wrote: > Hi Sagar, > > I'm sure there are plenty places where you can pay people to do your

can you make program from this algorithm

2020-03-02 Thread sagar ninave
-- 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/m

Re: Study and project partner(s) needed

2020-02-16 Thread sagar ninave
https://groups.google.com/d/msgid/django-users/19bdc232-e608-4027-9066-2e7479772e26%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/19bdc232-e608-4027-9066-2e7479772e26%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- <https://about.me/sagarn

Re: Python Django Training

2020-02-02 Thread sagar ninave
mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> sagar ninave about.me/sagarninave <https://about.me/sagarninave?promo=email_

Re: How to write view in django to display friend_request which are sent by logged in user?

2020-01-10 Thread sagar ninave
googlegroups.com?utm_medium=email&utm_source=footer> > . > -- <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> sagar ninave about.me/sagarninave <https://about.me/sagarninave?promo=em

Re: Training course and/or job

2020-01-09 Thread sagar podilapu
Hi Red, Are you looking for a free course or a paid one? There are plenty of free resources on youtube. I like Corey Schafer tutorial on youtube. On Udemy, you will find the courses but I did not see a difference between them and youtube. If you would like to have a mentor based learning where you

Re: Necessary to learn React/ Angular with backend Django

2020-01-07 Thread sagar ninave
igitalOcean *or any other enterprise cloud > solution. > > All the best, > Ronnie > *Hey Ronnie * *i appreciate this detailed answer, balaji will get full about development* <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaig

getting problem in uuid (" 1 is not valid uuid")

2020-01-05 Thread sagar ninave
hello there, i am implementing custom user model with uuid field as user id. but when i am trying to log in at admin panel it is showing me 1 is not a valid uuid. instead i am creating user id field with AutoField it is running property. what is problem i am not getting -- You received this me

Re: email api

2020-01-05 Thread sagar ninave
il.gmail.com > <https://groups.google.com/d/msgid/django-users/CAPCf-y7O3LWHCfjxyiPZPaLYyPeJTrVaj3%3D_xDpLrOR0U9D5LA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&am

Re: Hello Everbody! Happy New Year

2020-01-05 Thread sagar ninave
J7UnhxbXHZWvUKx4rGzriWmF9sS6TMg%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CABCeVgxGwLt7E%3D3eBj2J7UnhxbXHZWvUKx4rGzriWmF9sS6TMg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are s

Re: How to do SEO for my django website

2020-01-03 Thread sagar ninave
https://www.bedjango.com/blog/4-tips-position-your-website-using-django/ On Fri, Jan 3, 2020 at 6:19 PM sagar ninave wrote: > https://django-seo.readthedocs.io/en/latest/introduction/tutorial.html > > > On Fri, Jan 3, 2020 at 6:11 PM Yash Garg wrote: > >> Is there

Re: How to do SEO for my django website

2020-01-03 Thread sagar ninave
652863eec%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/1869ef27-3269-41bc-a0e3-c79652863eec%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_

Re: Hi everyone I am new in django and postgresql. Actually I am getting following error when i run the project, Although I am putting right password and username. Please Help me....

2020-01-03 Thread sagar ninave
Hello ShailendraI have tried to attached postgresql to django but it could not happened please can you tell me what is procedure to do that -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Blog styling

2019-12-26 Thread sagar podilapu
Good luck. Now what help do you need? On Thu, Dec 26, 2019 at 6:34 PM Anwar Ali wrote: > Hi guys, > > I am converting my site to A.I blog so I wanna know what styles of writing > and options I have for giving my blog a decent look like many WordPress > blogs have ... like styling, writing option

['“1” is not a valid UUID.']

2019-12-23 Thread sagar ninave
hello friends, i am creating model and including uuid field and it is working but when i am applying custom user model them it is getting ['“1” is not a valid UUID.'] this error please help me out -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: TeenagerStartups looking for Project Interns for Django/React Project

2019-12-23 Thread sagar ninave
then how will you pay ? On Mon, Dec 23, 2019 at 4:18 PM Anh Nguyen wrote: > Hi, Roshan > Does remote accept ? > > On Mon, Dec 23, 2019 at 11:21 AM sagar ninave > wrote: > >> what is name of your firm >> >> On Sun, Dec 22, 2019 at 10:07 PM Dvs Khamele

Re: TeenagerStartups looking for Project Interns for Django/React Project

2019-12-22 Thread sagar ninave
scribe 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/CAH9mneXsDwCfsm52Jaw%2Byk8zsTyk6pEfPOChx5pzN%2BCLfd5tTQ%40mail.gmail.com > <

Re: Looking for internship

2019-12-22 Thread sagar podilapu
We are hiring. Send resume to sa...@sidabs.com On Sun, Dec 22, 2019 at 4:17 PM Anirudh choudhary < anirudhchoudary...@gmail.com> wrote: > Bhai kya copy paste kar diya kya > > > On Sun, 22 Dec, 2019, 2:24 PM Deepak Singh, > wrote: > >> Hello all >> >> I am looking for internship in Delhi or pune.

Re: TeenagerStartups looking for Project Interns for Django/React Project

2019-12-19 Thread sagar ninave
ssion on the web visit >> https://groups.google.com/d/msgid/django-users/CAJsc%2Bob%3DmYdj469b73gnfrs708J771JfBqiB-5bHLR2_hxGYWg%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAJsc%2Bob%3DmYdj469b73gnfrs708J771JfBqiB-5bHLR2_hxGYWg%40mail.gmail.com?utm_medium=email&a

Re: User is not logging in admin panel

2019-12-16 Thread sagar ninave
creates a user with the 'staff' attribute set to true. When you create a > user through > the model thats inheriting from the User model, the default for the > 'staff' attribute is set to false. The solution is to make sure you > override the save method > and set the &#

Re: User is not logging in admin panel

2019-12-16 Thread sagar ninave
27;createsuperuser' command >> creates a user with the 'staff' attribute set to true. When you create a >> user through >> the model thats inheriting from the User model, the default for the >> 'staff' attribute is set to false. The solution is to make sur

User is not logging in admin panel

2019-12-16 Thread sagar ninave
Hello Everyone, i am getting some issue please help me. i have created custom user model in account app by extending auth user model. also i have creates register api to register user. i am able to create superuser from command prompt and api as well. and both user are storing in single User m

Re: Python problem... Chetan is really Genius

2019-12-15 Thread sagar ninave
i am too @Balaji Shetty . actually yesterday evening he helped me to solved some problem on linked in where i was stuck. -- 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 e

getting error '1' is not a valid UUID in django 3.0

2019-12-14 Thread sagar ninave
-- 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/m

Re: form.is_valid() is always return false please help

2019-08-24 Thread vineeth sagar
What does form.errors show. Just see what print(form.errors) tells you. It should be pretty obvious. On Sun, 25 Aug 2019, 00:30 mohammad mehrani, wrote: > awesome!!! and i like it > > On Fri, Aug 23, 2019 at 12:27 AM Shubham Chauhan < > shubham.chauhan...@gmail.com> wrote: > >> form.is_valid() i

Re: Learn_Master_Django

2019-06-23 Thread sagar lama
The official documentation of django is the best thing on the internet. It takes time to get your head around it at the beginning. but once you get the hang of it you'll know what i'm talking about. But i'd refer you to this post by W.S. Vincent https://wsvincent.com/best-online-django-tutorial

[Urgent] 500 when requesting a file from browser.

2019-06-20 Thread vineeth sagar
I need to display images on canvas, so I have used the following snippet. The request is reaching the server but I get the following trace. Unable to make sense out of it, if any of you can help out, it would be great. function getImage(file_name, num_pages) { myimage = new Image(); my

Re: How to modify LOGGING settings in unittest

2019-06-10 Thread vineeth sagar
Try this with the override_settings decorator. like this. @override_settings(LOGGING_DIR='/tmp/test_logs/' def test_function1(self): pass On Mon, Jun 10, 2019 at 7:15 PM panfei wrote: > There is a logger path for production environment, but I want to put the > logs in /tmp/ in unittests. >

Re: my file uploads missing/deleted

2019-06-09 Thread sagar ninave
ave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> sagar ninave about.me/sagarninave <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb

Re: TemplateSyntaxError

2019-05-31 Thread sagar ninave
> For more options, visit https://groups.google.com/d/optout. > -- <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> sagar ninave about.me/sagarninave <https://about.me/sagarninave?

Re: python manage.py makemirations

2019-05-31 Thread sagar ninave
es? >> >> >> >> *From: *"django-users@googlegroups.com" >> on behalf of sagar ninave >> *Reply-To: *"django-users@googlegroups.com" < >> django-users@googlegroups.com> >> *Date: *Wednesday, May 29, 2019 at 2:17 PM >> *T

python manage.py makemirations

2019-05-29 Thread sagar ninave
i have created new project and i am defining model and doing makemigratins but it is showing no changes detected what is problem i don't understand -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivin

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread sagar ninave
MessageMiddleware', > # 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', > 'django.middleware.clickjacking.XFrameOptionsMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware', > ] > > On Wed, May 22, 2019 at 12:11 PM sagar ninave > wrote: > >>

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread sagar ninave
i have tried already On Wed, May 22, 2019 at 11:45 AM sagar ninave wrote: > after doing this i am getting another error > > On Wed, May 22, 2019 at 11:44 AM Abu Yusuf > wrote: > >> It's middleware. Not middleware_classes: >> >> MIDDLEWARE = [ >> &#

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread sagar ninave
tterns = [ > path('admin/', admin.site.urls), > # url(r'^microblogs-admin/', microblogs_admin_site.urls), > ] > > > On Wed, May 22, 2019 at 12:00 PM Abu Yusuf > wrote: > >> It's working fine. >> [image: wsgi.png] >> >> On Wed,

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread sagar ninave
when i am opening admin panel then it is getting error On Wed, May 22, 2019 at 11:19 AM Abu Yusuf wrote: > I did run your project and it's working fine. > > On Wed, May 22, 2019 at 11:43 AM sagar ninave > wrote: > >> no i am getting this error again >> >&g

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread sagar ninave
t; > On Wed, May 22, 2019 at 10:36 AM Abu Yusuf > wrote: > >> This issue has been resolved yet? >> >> On Tue, May 21, 2019 at 4:55 PM sagar ninave >> wrote: >> >>> my manage.py is in project folder you can check attachment >>> >

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread sagar ninave
my manage.py is in project folder you can check attachment On Mon, May 20, 2019 at 5:42 PM Abu Yusuf wrote: > Where is your manage.py file? > > On Mon, May 20, 2019 at 11:57 AM sagar ninave > wrote: > >> AttributeError at /admin/ 'WSGIRequest' object has no att

Re: How to make Django Project Mobile Compatible

2019-05-15 Thread Sagar Gurung
Sorry for this but are you related to Shilpa Shetty (BW Actress)? :) On Wed, May 15, 2019 at 1:00 PM arun ashok wrote: > Boostrapping > > On Saturday, May 11, 2019 at 12:35:15 PM UTC+5:30, Balaji Shetty wrote: >> >> Hi >> >> How can i make my Django Project view Mobile Compatible. >> Should i us

Creating a Custom User Model Extending AbstractUser

2019-05-01 Thread sagar ninave
i want to know what is custom user model and how we use and where -- 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

Re: DateTimeField is in UTC but need IST standards

2019-04-30 Thread vineeth sagar
whenever USE_TZ=True is enabled, the timestamp is stored as a UTC object. This is standard practice, why? https://docs.djangoproject.com/en/2.2/topics/i18n/timezones/ Go through this, more than once. It'll be helpful. On Tue, 30 Apr 2019, 18:09 Sampath Reddy, wrote: > Hey guys, > > I am using

about abstract user

2019-04-29 Thread sagar ninave
class User(AbstractUser): tweet = models.ManyToManyField(Tweet, blank=True) follower = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True) pass class Tweet(models.Model): tweet = models.TextField() favourite = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=Tru

Re: Django - always getting False in form.is_valid()

2019-04-19 Thread vineeth sagar
can you please post, request.POST output? On Fri, 19 Apr 2019, 16:34 Sipum Mishra, wrote: > Hi All, > > I am always getting - form.is_valid returning False. kindly check where I > am doing wrong. > please find below code. > > > views.py > --- > def home(request): > > if request.method ==

Re: How this Line of code works

2019-04-14 Thread vineeth sagar
Hi Mayur, get_object_or_404, returns an object if it exists in the database or it will raise a 404 exception. So if the object is in the DB, django render template is done, in your case detail.html is rendered with the context dictionary.If there's no row peertaining to the query, then Http404 is

Re: my first post: makemigrations polls App 'polls' could not be found. Is it in INSTALLED_APPS?

2019-03-10 Thread Varun Sagar
from django.apps import AppConfig #Add this in your'e apps.py if you haven't class PollsConfig(AppConfig): name = 'polls' On Sat, Mar 9, 2019 at 6:35 PM maior marso wrote: > https://docs.djangoproject.com/en/2.1/intro/tutorial02/ > Activating Models > After editing polls/.models.py, and u

Re: How can I make users login to my site with facebook/twitter/google?

2019-03-05 Thread vineeth sagar
You can use django social auth. https://python-social-auth-docs.readthedocs.io/en/latest/configuration/django.html If you just want to learn. Look up Oauth2 and then use developer documentation to implement login with django. On Tue, 5 Mar, 2019, 22:49 Sandip Nath, wrote: > i want users to m

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread vineeth sagar
Friday, February 1, 2019 at 4:00:13 PM UTC+5:30, vineeth sagar wrote: >> >> Hi, >> >> I am not sure about django, but you can have a look at sentry, we use it >> in production and it gives everything you ask for. I am sure Django also >> does it but I find sentr

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread vineeth sagar
Hi, I am not sure about django, but you can have a look at sentry, we use it in production and it gives everything you ask for. I am sure Django also does it but I find sentry better for error reporting. regards Vineeth On Feb 1, 2019 3:41 PM, "Web Architect" wrote: > Hi, > > In our production

Where do you place your application code in production

2019-01-14 Thread vineeth sagar
Hi, This is not concerned with django itself, but I would love to get the general consensus here, In my college days while deploying a php application all the tutorials pointed to place my code in /var/www or something of that sort. For my django applications I tend to put it in /home//services/.

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread vineeth sagar
Use this https://github.com/jpadilla/django-dotenv/blob/master/README.rst If you have copied the GitHub template of .gitignore then the .env won't be in your history of vs. I used this in production and development without a single problem. On Nov 30, 2018 11:54 PM, "Carsten Fuchs" wrote: > Am

Re: How to fix TypeError: __init__() missing 1 required positional argument: 'on_delete'

2018-11-22 Thread vineeth sagar
For a foreign keys you have to specify an on_delete attribute, food=models.ForiegnKey(Food,on_delete=models.CASCADE) If a row in the parent table(food for example) is deleted this will cause the row/s that refers to that particular food item in your Restraunt model be deleted. on_delete can be g

Re: How to solve django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server during query')?

2018-11-15 Thread vineeth sagar
Try reducing the connection max age to a lesser value like 3600 maybe? On Nov 15, 2018 2:41 PM, "prateek gupta" wrote: > Hi, > > My all db have 20 gb of size. > > On Thursday, November 15, 2018 at 12:27:27 PM UTC+5:30, Krishnasagar > Subhedarpage wrote: >> >> Hi Prateek, >> >> Did you check disk

Re: Error installing mysqldb module !

2018-11-11 Thread vineeth sagar
Ah using Windows the most braindead operating system the world has ever seen. My coworker had this problem and he solved it using the following command pip install --only-binary :all: mysqlclient Good luck! On Nov 11, 2018 5:01 PM, "Swetank Subham Roy" wrote: > First of all you have to instal

Re: Link ID's To Detail Page

2018-11-07 Thread vineeth sagar
I think it should be url 'kpi_detail' incident_id=incident.id" and for the other one it should be url 'kpi_eftdetail' eftlead=eftlead.id" . I think you get the idea. This won't solve it if you copy paste but it's a step in the right path On Nov 7, 2018 8:20 PM, "Gregory Strydom" wrote: > Hi ther

Re: I Suck

2018-10-24 Thread vineeth sagar
Hi, This kind of attitude gets you no where my man, Programming is supposed to be hard. You pick-up things every day. First focus on your weaknesses and then work your way up. If you don't have good python experience learn python first and then comeback to django. If there is some part of django y

Re: Template Issues

2018-10-21 Thread vineeth sagar
Do you mean bootstrap? STL doesn't care about that and it's not clear what you mean. Can you share the code so that we can help you. On Oct 22, 2018 12:14 AM, "Dennis Alabi" wrote: > i am Building Django 2.0 Web Applications, template is not rendering with > boottrap3. > > -- > You received this

Re: Connecting Sql server to Django

2018-10-14 Thread vineeth sagar
M Pradeep Singh >>> wrote: >>> >>>> bro...will you help me ... >>>> i am getting django 404 error ...please tell how to fix it... >>>> i am using python 3.6 + django 1.11 >>>> >>>> On Fri, 12 Oct 2018 at 19:35, vineeth

Re: Connecting Sql server to Django

2018-10-12 Thread vineeth sagar
I don't know if it works for 1.8, you would've tested it by now. The link I haven given is a current method to connect with sql server with newer versions of django, also I think it's about time your company updated your django version. For 2.1 the link I have given works seemlessly. On Oct 12,

Re: Connecting Sql server to Django

2018-10-11 Thread vineeth sagar
Which version of django are you using, django-mssql only supports Django until 1.8 and it's not under active development. https://pypi.org/project/django-pyodbc-azure/ use this instead, this works with ms-sql as I use this at work and if you go to the bitbucket repo you'll find the same thing I ha

Django Code distribution to customers.

2018-10-09 Thread vineeth sagar
We deploy our web applications on the infrastructure provided by the customer, how do you keep the code non-accessible to others. WHAT are the strategies you use. It doesn't have to be fool proof just it should become very hard to look at the code. Any ideas? -- You received this message becau

Possible bug while using migrate or maybe not.

2018-09-18 Thread vineeth sagar
> > So I had a migration which can be found below, so when I was applying the > migration I get this error You can't delete all columns with ALTER TABLE; > use DROP TABLE instead That makes sense because I have only a single > column. When I use the code sample 2 it works nicely. Can anyone

I don't clearly know how to name my issue, please read the body.

2018-09-09 Thread vineeth sagar
I have a form class like this, if the db is not populated I skip that field, in the future when something thaat might trigger a d population happens and I try to render this form, it doesn't recognise the update, but once I restart the development server it renders with the newly added field? I

Re: Ldap for django

2018-08-31 Thread vineeth sagar
Wow Vineet Kothari very insightful, why do you have to be a dick? On Aug 31, 2018 9:57 PM, "Vineet Kothari" wrote: > It is not lodap is ldap > > Sent from my Huawei Mobile > > > Original Message > Subject: Ldap for django > From: soumyajit banerjee > To: Django users > CC: > >

Re: Doubts on One-To-One Field

2018-08-30 Thread vineeth sagar
y for each prefetched item, so one for users and one for > user profiles, which isn't useful here. > > https://docs.djangoproject.com/en/2.1/ref/models/querysets/#select-related > > On 8/30/2018 9:08 AM, vineeth sagar wrote: > > def userProfile(models.Model): > use

Doubts on One-To-One Field

2018-08-30 Thread vineeth sagar
def userProfile(models.Model): user=models.OneToOneField(User,primary_key=True) """ Other stuff """ I can query it like this x = userProfile.objects.get(user__id=1)(Assuming this exists) when I do a connection.queries a single query is executed.When I try to access the

Re: Making a django project and an API.

2018-08-22 Thread vineeth sagar
Sorry, got the name of the book. On Aug 23, 2018 9:29 AM, "vineeth sagar" wrote: > Hey Mike I like reading books rather than tutorials please share the name > of the book. > > On Aug 23, 2018 5:47 AM, "Mike Dewhirst" wrote: > >> If you can get your han

Re: Making a django project and an API.

2018-08-22 Thread vineeth sagar
it (20+ pages) and I > reckon it will answer all your questions. > > On 23/08/2018 5:10 AM, vineeth sagar wrote: > >> Hi I am pretty comfortable django. Now recently started working on a >> fresh project, they want a normal project and an browsable api. I have seen >&g

Making a django project and an API.

2018-08-22 Thread vineeth sagar
Hi I am pretty comfortable django. Now recently started working on a fresh project, they want a normal project and an browsable api. I have seen the drf and it's great, the browsable api in drf documentation is what they(my boss) wants. How do I start developing both of them simultaneously. I wi

Help regarding view modification

2018-08-22 Thread Sagar
Hi guys, I am working on project in which admin will post news and users will able to give up-votes, down-votes and comments. I'm storing data in MongoDB. I'm trying to store comments inside it's parent news documents. I'm facing some trouble with views. Look at the my code and below that I expl

Re: ValueError at /news/ Value: None must be instance of Model:

2018-08-21 Thread Sagar
0:18:56 PM UTC+5:30, Mikhailo Keda wrote: > > rest_framework_mongoengine was updated 1 year ago, according to djongo > docs they have integration with Django Rest Framework, try to use Django > Rest Framework instead of rest_framework_mongoengine. > And you need debug the error. > >

Re: ValueError at /news/ Value: None must be instance of Model:

2018-08-20 Thread Sagar
Hi Mikhailo Yes you are right, but I didn't used django-nonrel or djangotoolbox. Those were totally outdated. I have used djongo which is updated as far as I know. About MongoDB, I'm working on project in which we used MongoDB. We want to use NoSQL database insted of SQL database. Did you work w

ValueError at /news/ Value: None must be instance of Model:

2018-08-19 Thread Sagar
Hi, I'm trying to create embedded documents in mongodb using django. I'm facing this error when I tried to insert a post in database. "ValueError at /post/Value: None must be instance of Model: " Here is my code. models.py from djongo import models # Schema for comments collection which include

Facing trouble with djangotoolbox

2018-08-18 Thread Sagar
Hello, I am working on project in which I'm using django2 and MongoDB as database. I have used djongo driver to connect django with MongoDB. I don't have any experience with django or MongoDB. This is first time I have use both of these. Currently I want to create Embedded documents in MongoDB.

Re: Learning django

2018-08-05 Thread vineeth sagar
Not to be mean or cheeky, but Django documentation is best book imo. Read the docs, if they are unclear in anyway, Start reading code. That's how I learnt about sessions and also you'll get to learn all kinds of cool stuff when you start reading Django code, Like property,cached property, Lazy eval

Re: JSON serializable error

2018-08-03 Thread vineeth sagar
You can use unix timestamp, It's json serializable and can be converted to a datetime object. If I am not wrong you were trying to store it in a session? try this. import time timestamp=time.time() request.session['current time']= timestamp import datetime datetime.datetime.fromtimestamp(request

Unable to view chart as a seperate webpage

2018-08-01 Thread Sagar T
*details_page.html : * https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/> {% load staticfiles %} https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js";> https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.0/Chart.min.js";> var rando

Problems Faced with some login requirements. Please read the thread below

2018-08-01 Thread vineeth sagar
Hi, So we are currently doing a project where the client wants the session to expire at browser close and also prevent multiple logins from the same account. Well there are some ways to implement the multiple login thing, consider this say user closes the browser, the session cookie expires. Wh

Some Doubts on Session Expiries

2018-07-25 Thread vineeth sagar
Hi, I have been going crazy for the past few days trying to understand sessions, my settings.py file as the following, SESSION_SAVE_EVERY_REQUEST=True SESSION_COOKIE_AGE=2*60 Now whenever a request is initiated shoudn't the expiry date of the cookie i.e the one that holds the session id ,doub

Re: A few doubts with an implementation.

2018-07-02 Thread Vineeth Sagar
Mikhailo Keda wrote: > > to fetch emails every N minutes or hours - > http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html > I want the user to know that the mails are being retrieved - > https://channels.readthedocs.io/en/latest/ > Thanks Mikhailo for the prompt reply, I

A few doubts with an implementation.

2018-07-02 Thread Vineeth Sagar
Problem: We are developing a email-CRM. The task at hand is to fetch emails every N minutes or hours. I have received a codebase written by another guy who left the company,my job is to re-write/re-factor. The guy who previously wrote the code started a thread whenever a user logged and he put a

Re: Getting NoReverseMatch at /logout/

2016-03-28 Thread Deepanshu Sagar
; > name is for reverse lookups from inside the django app not for the urls. > > 2016-03-28 10:49 GMT+01:00 Deepanshu Sagar >: > >> Hello, >> >> I am getting below error while clicking on logout button on webpage: >> >> >> boardgames/url.py co

Getting NoReverseMatch at /logout/

2016-03-28 Thread Deepanshu Sagar
Hello, I am getting below error while clicking on logout button on webpage: boardgames/url.py contains: main/urls.py and views.py are below. please guys, any help is appreciated. Regards Deepanshu -- You received this message because you are subscribed to the Google Groups "Django

Re: unhashable type: 'dict'

2016-03-19 Thread Deepanshu Sagar
#x27;next_page': 'boardgames_home'}, > name='boardgames_logout'), > > -- > Bruno Barbosa > Web Developer > *brunobarbosa.com.br <http://brunobarbosa.com.br>* > > On Tue, Mar 15, 2016 at 10:32 AM, Deepanshu Sagar > wrote: > >> yes, thank you

Re: unhashable type: 'dict'

2016-03-19 Thread Deepanshu Sagar
mes, 'finished_games': finished_games} return render(request, "user/home.html", context) So, Game is not getting imported with: from tictactoe.models import Game below is my directory tree: any help is appreciated. thanks Deepanshu On Wednesday,

  1   2   >