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.
>>>
&
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
= 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
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:
>
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,
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.
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
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
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&
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
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
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
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
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
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+
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
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
--
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
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
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_
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
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
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
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
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
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
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
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_
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
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
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
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
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
> <
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.
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
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
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
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
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
--
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
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
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
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
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.
>
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
> 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?
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
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
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:
>
>>
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 = [
>>
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,
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
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
>>>
>
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
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
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
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
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
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 ==
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
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
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
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
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
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/.
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
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
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
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
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
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
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
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
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,
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
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
>
> 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 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
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:
>
>
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
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
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
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
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
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
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.
>
>
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
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
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.
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
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
*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
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
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
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
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
;
> 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
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
#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
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 - 100 of 106 matches
Mail list logo