Issue Postgres documentation says there’s a built-in daterange type but it doesn’t seem to work when I write a function in DBeaver. It’s not highlighted or recognized as such. I need to pass 2 dateranges in the format of [2018-01-01,
Continue readingPostgreSQL- Filter a date range
Issue I’m a SQL developer and spend most of my time in MSSQL. I’m looking for a better way to filter a “Timestamp without timezone” field in a PostgreSQL DB. I’m using: Where DateField >= ‘2010-01-01’ and DateField < ‘2012-01-01’
Continue readingLoop through a date range with JavaScript
Issue Given two Date() objects, where one is less than the other, how do I loop every day between the dates? for(loopDate = startDate; loopDate < endDate; loopDate += 1) { } Would this sort of loop work? But how
Continue readingHow to construct date range query when not all dates exist in hierarchy?
Issue New to MDX and inherited an application using the following to retrieve the last 7 work days. Note, the actual dates are generated dynamically. WHERE ( [DimCalendar].[WorkDayHierarchy].[WorkDate].&[2016-03-25T00:00:00] : [DimCalendar].[WorkDayHierarchy].[WorkDate].&[2016-03-26T00:00:00].lag(6) ) I expected it to use the previous 7 work
Continue readingHow to get exclusive date ranges?
Issue I would like an object that gives me a date range for every month (or quarter) from 1990-01-01 to 2021-12-31, separated by a colon. So for example in the monthly case, the first object would be 1990-01-01:1990-01-31, the second
Continue readingDynamic Level in Pandas `date_range`
Issue I wanted to make pandas date_range dynamic. So, let x = 30 — This can take any values. pd.date_range(start=’2020-01-01′, end=’2020-01-31′, freq=’xH’) ’30H’ is giving result, but not ‘x30’. Can someone please guide me how to make it dynamic? Solution
Continue readingFind all date ranges for overlapping start and end dates in R
Issue I have a data frame that looks like this: w<-read.table(header=TRUE,text=” start.date end.date 2006-06-26 2006-07-24 2006-07-19 2006-08-16 2007-06-09 2007-07-07 2007-06-24 2007-07-22 2007-07-03 2007-07-31 2007-08-04 2007-09-01 2007-08-07 2007-09-04 2007-09-05 2007-10-03 2007-09-14 2007-10-12 2007-10-19 2007-11-16 2007-11-17 2007-12-15 2008-06-18 2008-07-16 2008-06-28 2008-07-26 2008-07-11
Continue readingHow can i add Preset Ranges in MUI 5 date range picker
Issue I am using MUI 5 date range picker my task is I need to add Preset Ranges in the place of the footer in the date range picker if any way we can do it so I need to
Continue readingHow to extract dates from an Object in Java
Issue I should extract dates from an Object, but the compiler rightly tells me that getDate() is not defined on Object. How can I define it? If I can’t define it, what did I do wrong? Should I use the
Continue readingpandas date_range error "ValueError: Of the three parameters: start, end, and periods, exactly two must be specified"
Issue I have to develop production code to work with pandas 0.22.0. I get ValueError: Of the three parameters: start, end, and periods, exactly two must be specified when I run the following code import pandas as pd pd.date_range(start=’2020-03-20 00:00′,
Continue readingClose date range calendar component after choosing two dates
Issue PrimeNg delivers really good Calendar component which works really fine, but is there a way to close it after choosing 2 dates? <p-calendar [(ngModel)]=”rangeDates” selectionMode=”range” [readonlyInput]=”true”></p-calendar> In documentation I noticed two interesting things as: – Event onSelect, unfortunately it
Continue readingPython date range within 12 months
Issue I want to create a new column if survey_start date is with 12 months prior to start_date then 1 else 0 ID survey_date start_date 1 2019-05-01 2022-05-01 1 2021-05-01 2022-05-01 1 2023-05-01 2022-05-01 1 2021-12-01 2022-05-01 2 2010-01-01 2010-02-01
Continue readingPandas _period_range function not working when extracted date from data frame
Issue I need to access the date range from the data frame and specify in period_range() Issue: Even though I am passing a string as argument, it doesn’t work. Kindly suggest where am I going wrong. Dataframe Below mentioning the
Continue readingMake a list of months and years in Pandas
Issue I am trying to make a date_list that is a range of the months in the last year. It should be formatted [‘Oct 2014’, ‘Nov 2014’, ‘Dec 2014’, ‘Jan 2015’, ‘Feb 2015’,… ‘Sep 2015’] Sometimes it works, and sometimes
Continue readingPower BI cumulative count between date range
Issue I am trying to make a board that tells me the active users in the last 3 months for each month, I have a calendar table with the last day of each month of 2020 and the idea is
Continue readingWhy did plt.hline() show an extended long X axis than number of dates in the data? – matplotlib
Issue I’m trying to replicate a plot example but ran into an issue with the x axis and date range. When the plt.hlines() is included, the range goes back to 1970. When removed, the date range is correct. What could
Continue readingPandas choose a single value from delimited list in column based on date
Issue Apologies in advance for bad description—I’m struggling to articulate this well. Basically, I have the following data in a Pandas dataframe: id symbols symbol_dates 1 ABC 20070103:29991231 2 DEF;GH 20100307:20141215;20141216:29991231 3 IJ;KLM;NO 20040107:20051105;20051106:20180316;20180317:29991231 4 PQ 20080103:20090613 5 RST;UV 20080206:20150603;20150604:29991231
Continue readingLook for a string in a data frame and select the rows with R
Issue I have a table like this Column A Column B Column C Column D A x 1 k1 B k 2 k2 C z 3 k3 D y 4 k4 I would like to write a script which selects
Continue readingHow to count week days without the weekend using VB.Net?
Issue So I have a date range. dateFrom and dateTo. I want to count how many days from dateFrom and dateTo without weekend. Example : user select Thursday’s date until next week Monday’s date. So it should be only 3
Continue readingDetermine if the day of a month is in a date range, independent from its year
Issue Given I have time ranges with a start and an end date, I can easily determine if a specific date falls in this time range. How can we determine if a specific month/day combination lies in a time range,
Continue readingCount values by date in Python
Issue Something was active for some period of time (e.g. from 01-01-2022 to 01-02-2022). I have a list of those items, every one was active for a different period of time. I want to count how many items were active
Continue readingYears of Service Anniversary formula – Cognos Analytics – Costpoint 8.0.0
Issue this one has been bugging me for a few weeks… I’m trying to write a formula in Cognos Analytics (costpoint) that returns if someone is hitting a new years of service milestone in the actual month. returning a simple
Continue readingHow to Auto generate dates between date range using SQL Query?
Issue I just want to generate the date between data range using SQL Query. Source: Result: Thanks, Lawrance A Solution Here is how to accomplish this by using a tally table to create a calendar table: declare @source table (
Continue readingMySQL where clause with DATE_FORMAT
Issue I have a MySQL table with a date column. I am trying select all the rows between some particular date range as, select * from myTable mt where DATE_FORMAT(mt.DateCol, ‘%y-%m-%b’) between ’01/03/2015′ and ’09/03/2015′ where 01/03/2015 and 09/03/2015 are
Continue readingDate range filter in ASP.NET Core MVC
Issue Can’t populate date inputs from my model in ASP.NET Core MVC. It’s accepted, but no display dates in input after filter submit Here’s the code : In model class: public DateTime? StartDate { get; set; } public DateTime? EndDate
Continue readingR (dplyr): find all rows in row-specific range
Issue I have a dataset where each row is identified by a hospitalization id. Each row contains information on the hospitalization id, hospital id where it took place as well as date of admission and date of discharge of the
Continue readingParse date range expression where end month is omitted when it is the same as the start month
Issue I have a date field that looks like the following: $exampleOne = ‘Sep 04-08’; $exampleTwo = ‘Sep 29-Oct 01’; How can I separate them to become: $exampleOneResult = {‘Sep 04’, ‘Sep 08’}; $exampleTwoResult = {‘Sep 29’, ‘Oct 01’}; I
Continue readingFind set of rows in row-specific range with restriction at different levels
Issue I have a dataset where each row is identified by a hospitalization id – physician id. Each row also contains information on the dates of admission and discharge and the hospital where it took place. A hospitalization may involve
Continue readingEvalaute Oracle Table to Calulate or Extend Multiple Date Ranges into One Period
Issue I have a table that shows date ranges of an object. For reference The object needs some sort of event in order to prevent it from expiring. We have a rule where we can apply a protection against the
Continue readingEvalaute Oracle Table to Calulate or Extend Multiple Date Ranges into One Period
Issue I have a table that shows date ranges of an object. For reference The object needs some sort of event in order to prevent it from expiring. We have a rule where we can apply a protection against the
Continue readingEvalaute Oracle Table to Calulate or Extend Multiple Date Ranges into One Period
Issue I have a table that shows date ranges of an object. For reference The object needs some sort of event in order to prevent it from expiring. We have a rule where we can apply a protection against the
Continue readingIterating through a range of dates in Python
Issue I have the following code to do this, but how can I do it better? Right now I think it’s better than nested loops, but it starts to get Perl-one-linerish when you have a generator in a list comprehension.
Continue readingelastic search – Java api client range query
Issue I am migrating a java application from elastic search high level client to java api client. There is a range query like this in the code. QueryBuilders.rangeQuery("startDate").lte(dateUtils.today()) Need to change this to java api client code. Could someone help
Continue readingGet count of days in 2 or more overlapping(or not) date ranges in PHP, Carbon
Issue How can I get amount of days in 2 or more potentially overlapping date ranges (CarbonPeriod)? $startDate_1 = ‘2022-12-01’; $endDate_1 = ‘2022-12-10’; $startDate_2 = ‘2022-12-06’; $endDate_2 = ‘2022-12-15’; $startDate_3 = ‘2022-12-21’; $endDate_3 = ‘2022-12-25’; $dateRange_1 = CarbonPeriod::create($startDate_1, $endDate_1); $dateRange_2
Continue readingGet count of days in 2 or more overlapping(or not) date ranges in PHP, Carbon
Issue How can I get amount of days in 2 or more potentially overlapping date ranges (CarbonPeriod)? $startDate_1 = ‘2022-12-01’; $endDate_1 = ‘2022-12-10’; $startDate_2 = ‘2022-12-06’; $endDate_2 = ‘2022-12-15’; $startDate_3 = ‘2022-12-21’; $endDate_3 = ‘2022-12-25’; $dateRange_1 = CarbonPeriod::create($startDate_1, $endDate_1); $dateRange_2
Continue readingSQL: Merge Overlapping Date Ranges
Issue I have two tables both containing date ranges, the first table contains the default record ID that applies during the date range: STARTDATE | ENDDATE | RECORDID __________________________________________________ 2022/Nov/01 00:00 | 2022/Nov/30 00:00 | 10 2022/Dec/01 00:00 | 2022/Dec/31
Continue readingHow to create a 'past 3 months' time period in Google Data Studio
Issue I’m trying to have my line chart show data for the past 3 months. GDS has a ‘last quarter’ date range, but this shows me Q1, Q2, Q3, or Q4. What I need is the data for the past
Continue readingChecking Date Conflicts VBA Excel
Issue I need some help trying to figure out why this code is working the way it is. There are dates where it would say that there is a conflict when it shouldn’t be. It would be great it I
Continue readingPandas Dataframe – Convert time interval to continuous time series
Issue I have an energy data with a start time and end time interval. I want to distribute the total energy to the continuous time series (dividing total energy to total hours). As I searched the results, I have found
Continue readingHow to remove disabled years from material datepicker?
Issue For material datepicker we can use propery max and min to set range of avaliable years. But, it still display some unavaliable years. Is there any way to remove those years ? Need to remove years from 98-09 Solution
Continue readingFinding a consecutive date ranges in ms sql server
Issue I searched the forum posts for similar issue to mine but could not find one. There are other posts on gaps and islands problem with date ranges, but not that works for my case. Here is the create table
Continue readingFinding a consecutive date ranges in ms sql server
Issue I searched the forum posts for similar issue to mine but could not find one. There are other posts on gaps and islands problem with date ranges, but not that works for my case. Here is the create table
Continue readingSelect Data – First entry + set time period (1 year) R
Issue I have a dataset on a group of individuals that was collected starting at different times for each individual. I need to subset the data from 1 year since their first entry, like so: myData[myDate >= "first entry" &
Continue readingWhy is this query using the index differently when i change the range of search?
Issue I have a question about indexing and a strange (I suppose) behaviour I found when trying out some queries I’m using in a project. I have the following schema: a) an `activities` table +———+——————————————————–+——+—–+——————-+——————-+ | Field | Type |
Continue readingGiven a date/time range, how to filter results by time range?
Issue I’m using PostgreSQL for this. I need to count the calls to the sales department during the week and for those that came in between business hours. Here’s my query so far: SELECT SUM(CASE WHEN call_logs.to_phone_number IN (‘15125551234’) THEN
Continue readingCreate a unique index using gist with a column of type daterange and a text column
Issue Imagine we have this table: CREATE TABLE reservations ( reservation_id INT GENERATED ALWAYS AS IDENTITY, room_id INT NOT NULL, date_period DATERANGE, EXCLUDE USING gist (room_id WITH =, date_period WITH &&), PRIMARY KEY (reservation_id), FOREIGN KEY (room_id) REFERENCES rooms(room_id) ON
Continue readingPandas CustomBusinessHour reduced performance
Issue I need to reduce the performance of the following operation : st = time.time() bh = CustomBusinessHour(start=’00:00′, end=’23:00′) bdates = pd.date_range(start=’2024-01-01 00:00:00′, end=’2024-12-31 23:00:00′, freq=bh, name=’ts’, closed=None) print_statistics(f'{bdates}’, ‘filter_bp()’, ‘utils.py’, time.time() – st) which gives has the following output
Continue readingEfficient date range overlap calculation?
Issue I have two date ranges where each range is determined by a start and end date (obviously, datetime.date instances). The two ranges can overlap or not. I need the number of days of the overlap. Of course I can
Continue readingEfficient date range overlap calculation?
Issue I have two date ranges where each range is determined by a start and end date (obviously, datetime.date instances). The two ranges can overlap or not. I need the number of days of the overlap. Of course I can
Continue readingPython: Loop over datetimeindex based on different periods
Issue I have a DataFrame and I am trying to loop over the datetmeindex based on different frequencies: data = [[99330,12,122],[1123,1230,1287],[123,101,812739],[1143,12301230,252],[234,342,4546],[2445,3453,3457],[7897,8657,5675], [46,5675,453],[76,484,3735], [363,93,4568], [385,568,367], [458,846,4847], [574,45747,658468], [57457,46534,4675]] df1 = pd.DataFrame(data, index=[‘2022-01-01’, ‘2022-01-02’, ‘2022-01-03’, ‘2022-01-04’, ‘2022-01-05’, ‘2022-01-06’, ‘2022-01-07’, ‘2022-01-08’, ‘2022-01-09’, ‘2022-01-10’,
Continue readingHow to know if a DateTime is between a DateRange in C#
Issue I need to know if a Date is between a DateRange. I have three dates: // The date range DateTime startDate; DateTime endDate; DateTime dateToCheck; The easy solution is doing a comparison, but is there a smarter way to
Continue readingHow do I filter query objects by date range in Django?
Issue I’ve got a field in one model like: class Sample(models.Model): date = fields.DateField(auto_now=False) Now, I need to filter the objects by a date range. How do I filter all the objects that have a date between 1-Jan-2011 and 31-Jan-2011?
Continue readingCombine 2 arrays with time strings to 1 array of time ranges
Issue I have 2 arrays and I’d like to group them into one array: $arrayA = Array ( [0] => 08:00am [1] => 10:00am [2] => 12:00pm [3] => 02:00pm [4] => 04:00pm [5] => 06:00pm [6] => 08:00pm [7]
Continue readingHow do you give a date range then have that daterange be appended to the dataframe?
Issue I know how to generate a daterange using this code: pd.date_range(start=’2022-10-16′, end=’2022-10-19′) How do I get the daterange result above and loop through every locations in the below dataframe? +———-+ | Location | +———-+ | A | | B
Continue readingHow to produce monthly count when given a date range in pandas?
Issue I have a dataframe that records users, a label, and the start and end date of them being labelled as such e.g. user label start_date end_date 1 x 2018-01-01 2018-10-01 2 x 2019-05-10 2020-01-01 3 y 2019-04-01 2022-04-20 1
Continue readingHow do I use PutMappingRequest with the Elasticsearch 8 Java API Client?
Issue I am able to find an object with a datetime range corresponding to 2022-07-27 when sending the following HTTP requests from Postman to an Elasticsearch 8.3.2 server. PUT http://localhost:9200/commit { "mappings": { "properties": { "dateTimeRange": { "type": "date_range", "format":
Continue readingVBA: How can I fill in cells in one column based on the collective information of iterative ranges?
Issue I need to fill in Col H (see red text in image for an example) as follows: There are 3 subjects listed (separated by grey background) (Col C for number) Each subject has multiple data points (one per row-Col
Continue readingDate and time between a date range in dotnet
Issue I am facing the problem to know if DateTime is between a date range in the dotnet. For example if the x.SchedulerStart value is 2022-11-02 06:46:30 and x.SchedulerEnd value is 2022-11-02 23:26:30. I want check this DateTime.Today value is
Continue readingCombine date ranges in Spark dataframe
Issue I have a problem similar to this one. However, I am dealing with a huge dataset. I was trying to see if I can do the same thing in PySpark instead of pandas. Below is the solution in pandas.
Continue readingHow to get all weekends within a date range in C#
Issue Is there a simple way or framework to get all weekends within a date range in C#? Is it possible to do with LINQ as well? Solution I found how to do it. http://www.dotnetjalps.com/2011/06/finding-saturdaysunday-between-date.html namespace DatimeApplication { class Program
Continue readingIterating over date range in python and setting the start and end date
Issue I know this question is a repeated one. But what I am trying to do is, I want to iterate through a date range and for each iteration i need to set the fromDate and toDate. for ex: If
Continue readingCreating sum of date ranges in Pandas
Issue I have the following DataFrame, with over 3 million rows: VALID_FROM VALID_TO VALUE 0 2022-01-01 2022-01-02 5 1 2022-01-01 2022-01-03 2 2 2022-01-02 2022-01-04 7 3 2022-01-03 2022-01-06 3 I want to create one large date_range with a sum
Continue readingDetermine if a class falls on a holiday, given the start and end dates of the class and the dates of all holidays
Issue I have 2 tables in a database, the first has the following kind of information in it SECTION_NUMBER SECTION_ID MEETING_ID DAY_TYPE MEETING_NUMBER DATE_TIME_BEGIN DATE_TIME_END 390 166316 102451 1 1 2023-01-23 9:30:00 2023-05-17 10:50:00 390 166316 102451 3 1 2023-01-23
Continue readingCreate time range per group/location based on data set with movements
Issue I have a data set that contains movements of groups between different locations, which looks like this: library(data.table) df = data.table(Date = c(’01/01/2021′, ’06/01/2021′, ’09/01/2021′, ’10/01/2021′, ’20/01/2021′, ’24/01/2021′), Group = c(‘Group A’, ‘Group A’, ‘Group B’, ‘Group B’, ‘Group
Continue readingpandas: generate a dataframe, column a: start till end date (months) and two more columns
Issue My question was to generic. Ok, other try. I want a dataframe with monthly dates in the first column a. THen i want to go through the dates and fill the values in row b and c import pandas
Continue readingLaravel: How can I add an individual price from a table for each date within a given date range?
Issue I try to calculate the room rates dynamically. My table of room rates has currently three fields: id | room_rate | starting_from | ending_in 1 | 60 | 2019-12-01 | 2019-12-20 2 | 80 | 2019-12-21 | 2020-01-04 If
Continue readingFind missing date ranges between two dates
Issue I have table which having data of some date ranges. when user select start date and end date then the result set will be like all date ranges between that 2 dates also all missing date ranges between that
Continue readingRecursive algorithm for coalescing / collapsing list of dates into ranges
Issue Given a list of dates 12/07/2010 13/07/2010 14/07/2010 15/07/2010 12/08/2010 13/08/2010 14/08/2010 15/08/2010 19/08/2010 20/08/2010 21/08/2010 I’m looking for pointers towards a recursive pseudocode algorithm (which I can translate into a FileMaker custom function) for producing a list of
Continue readingHow to unpivot date range in Excel/ PowerQuery
Issue Would someone be able to tell me the best way of unpivoting the date range that currently appears in each row: start date and end date, so that the ‘Title’ appears row by row for each date included in
Continue readingFetching rows added last hour
Issue I keep a record of logins in a table. I have columns for id, ip, date and time. From that record of logins I wanna fetch logins made only in the last hour. I’m sweeping through the MySQL docs
Continue readingPowerBI fixing custom start date for Date Range slicer
Issue In PowerBI while using DateRange slicer is it possible to fix the Start Date as 01-06-2022 and End Date as today’s date and still we can select older dates from the Date Range selector so that we can list
Continue readingMerge two datasets based on date ranges. R
Issue My goal is to merge two datasets using date ranges. Dataset1 contains patients stays in a hospital overtime. Dataset2 contains room information overtime. My goal is to identify what type of room the stays were in my Dataset1. It
Continue readingGet nearest date to a specific date from range of dates
Issue I am trying to get the closest date (in a range of dates) to any given date. I tried to use the answer provided in this post – Find the closest date to a given date It doesn’t seem
Continue readingPandas date_range to generate monthly data at beginning of the month
Issue I’m trying to generate a date range of monthly data where the day is always at the beginning of the month: pd.date_range(start=’1/1/1980′, end=’11/1/1991′, freq=’M’) This generates 1/31/1980, 2/29/1980, and so on. Instead, I just want 1/1/1980, 2/1/1980,… I’ve seen
Continue readinghow to get the shifted index value of a dataframe in Pandas?
Issue Consider the simple example below: date = pd.date_range(‘1/1/2011′, periods=5, freq=’H’) df = pd.DataFrame({‘cat’ : [‘A’, ‘A’, ‘A’, ‘B’, ‘B’]}, index = date) df Out[278]: cat 2011-01-01 00:00:00 A 2011-01-01 01:00:00 A 2011-01-01 02:00:00 A 2011-01-01 03:00:00 B 2011-01-01 04:00:00
Continue readingPySpark explode date range into rows
Issue I need to explode date range into multiple rows with new start and end dates so the exploded rows have a range of one day only. I also need a new unique userId and need to retain start times
Continue readingPostgres LEFT JOIN with WHERE condition
Issue I need to left join two tables with a where condition: Table time_table id rid start_date end_date 1 2 2017-07-01 00:00:00 2018-11-01 00:00:00 2 5 2017-01-01 00:00:00 2017-06-01 00:00:00 3 2 2018-07-01 00:00:00 2020-11-01 00:00:00 Table record_table id name
Continue readingWho validates the property?
Issue I’m trying to find the piece of code that is responsible for property value validation. For example I have: <h1 [style.color]=”myColor”> And I bound myColor variable with input: <input (input)=”myColor = $event.target.value”> I expect change of color on input
Continue readingJavascript to Angular 2 : document.querySelector('el').emit('em') to @viewChild
Issue How to convert HTML <a-entity id=”fading-cube” geometry=”primitive: box” material=”opacity: 1″> <a-animation attribute=”material.opacity” begin=”fade” to=”0″></a-animation> </a-entity> JS document.querySelector(‘#fading-cube’).emit(‘fade’); This is my code in Angular 2 that is not working. @ViewChild(‘fading-cube’) fadingCubeInput: any; fadecube(){ this.renderer.setProperty(this.fadingCubeInput.nativeElement,’emit’,”fade”) } Solution To access your element
Continue readingAngular Renderer2 remove listener
Issue Is it possible to remove listeners with the new angular 4 renderer? here is the interface: abstract listen(target: ‘window’ | ‘document’ | ‘body’ | any, eventName: string, callback: (event: any) => boolean | void): () => void; In the
Continue readingPrevent Django Pipeline from post processing certain files
Issue I’m currently implementing Django Pipeline to minify my CSS/JS but I would like to stop it appending unique identifiers to certain files. This is because I am using django-tinymce and certain popups fail due to Django Pipeline. I get
Continue readingOSError: [Errno 32] Broken pipe with Django-pipeline
Issue I have recently installed django-pipeline on CentOS 5.7. I have yuglify installed at /usr/local/bin/yuglify and have changed PIPELINE_YUGLIFY_BINARY to point there. However whenever I run collectstatic I get the following: OSError: [Errno 32] Broken pipe Any help will be
Continue readingIs there any way to load, minimize and combine different javascript files for different templates in Django?
Issue Now, I put some common javascript files in PIPELINE_JS settings. But I also want to load more specific js files based on each individual template. I know I can simply add a script tag to include corresponding js files
Continue readingUsing Django Pipeline, why am I running into JS errors?
Issue I’ve configured Django Pipeline (verison 1.3.15) for a single group of JS files. I’ve configured them in the same order that they appear in my page normally. Everything works fine with collectstatic, etc. When I view the source, everything
Continue readingWhy does django-pipeline's {% compressed_js … %} tag output each script separately?
Issue I’ve configured pipeline as follows: STATICFILES_FINDERS = ( ‘django.contrib.staticfiles.finders.FileSystemFinder’, ‘django.contrib.staticfiles.finders.AppDirectoriesFinder’, ‘pipeline.finders.PipelineFinder’, ) # Static files storage STATICFILES_STORAGE = ‘pipeline.storage.PipelineStorage’ # Pipeline JS compressor PIPELINE_JS_COMPRESSOR = ‘pipeline.compressors.jsmin.JSMinCompressor’ PIPELINE_JS = { ‘website-main’: { ‘source_filenames’: ( ‘shared/jquery/jquery-1.10.2.min.js’, ‘shared/bootstrap/js/bootstrap.min.js’, ‘shared/jquery/jquery.cookie.js’, ), ‘output_filename’: ‘pipeline-compressed/website-main.js’,
Continue readingDjango pipeline generates empty files
Issue I’ve got several apps in my django project and I’m using pipeline to compress files and all works fine, but I have an app called “mypage” for which every file generated after calling collectstatic is empty! (if I copy
Continue readingdjango pipeline breaks admin when DEBUG=False
Issue here is the settings for css PIPELINE_CSS = { ‘base’: { ‘source_filenames’: ( ‘scss/core.scss’, ), ‘output_filename’: ‘css/min.css’, }, ‘ie8’: { ‘source_filenames’: ( ‘css/ie-8-overrides.css’, ), ‘output_filename’: ‘css/ie8.css’, }, } Somehow it complains about: ValueError: The file ‘admin/css/base.css’ could not be
Continue readingMultiple versions of same JS library with Bower and django-pipeline
Issue Two of the libraries I use in my single page application are moment and backgrid-moment-cell. I use bower to manage my front-end libraries and django-pipeline for asset packaging. I’d like to use version 2.8.1 of moment, but backgrid-moment-cell requires
Continue readingDjango-pipeline producing empty files
Issue Right now, when running python manage.py collectstatic produces a minified file but it is completely empty. Here are my settings.py (I am on a windows environment): STATICFILES_STORAGE = ‘pipeline.storage.PipelineStorage’ PIPELINE_ENABLED = True PIPELINE_DISABLE_WRAPPER = True PIPELINE_CSS_COMPRESSOR = ‘pipeline.compressors.yui.YUICompressor’ PIPELINE_JS_COMPRESSOR
Continue readingIs there a way to prevent django-pipeline from creating new jsx files every time it compiles react.js code?
Issue I currently have the PyReact JSX compiler installed using django-pipeline. Whenever I run collectstatic on my files, rather than overwriting a prior version of my react .jsx and compiled .js files, it creates a new version in the same
Continue readingHow can I use django-pipeline for JSX with browserify?
Issue I am setting up the asset pipeline for a new project. We already use React.js along with webpack in a gulp-based build system and would like to use React for the new project as well. Now, since the application
Continue readingStrange Issue When Minifying CSS via django-pipeline
Issue I’m using django-pipeline to minify my CSS. Everything minifies correctly until I use PipelineCachedStorage so I can get the versioned, cache-busting filenames. I get the following error: ValueError: The file ‘img/glyphicons-halflings.png’ could not be found with <pipeline.storage.PipelineCachedStorage object at
Continue readingDjango Pipeline node cannot find lessc
Issue I’m configuring Django Pipeline, which I have done before on Linux without issues. On OSX I get the following issue when using Less: CompilerError: env: node: No such file or directory The message comes from the stderr of the
Continue readingx-amz-acl being set incorrectly when using collectstatic with latest version of Boto, Pipeline, and Storages
Issue I’m in the process of bringing my app’s dependencies up-to-date. I made the following changes to requirements.txt: boto: upgraded to 2.34.0 django-pipeline: upgraded to 1.4.2 django-require: upgraded to 1.0.6 django-storages: was on latest (1.1.8) Now when I try to
Continue readingDjango-pipeline 'compressed' is not a valid tag library: ImportError raised loading pipeline.templatetags.compressed: No module named conf
Issue I’m getting this error and I have no clue why suddenly I’m having issue with django-pipeline. I’m running the project under a virtualenv and I’ve tried to create a new one with the basic app required to see if
Continue readingcollectfiles failes for pipeline / yUglify: The system cannot find the path specified
Issue I’ve been trying to get django-pipeline to work to combine and minify my css and js assets. I don’t seem to be able to sort the following issue out. When I run: python manage.py collectstatic –noinput I get an
Continue readinggetting django-pipeline and bower to play nicely together
Issue I am installing bower components to external/bower_components/ under my project root. I have additional static files under static as well as some that are part of installed apps. I’m trying to use django-pipeline to minify static files that all
Continue readingDjango Pipeline generates empty file
Issue I have a new Django project, all seems to work fine. I am using Django pipeline, however when I run “collectstatic” command, it generates all the files but my main css and js files are blank, well the js
Continue readingOverriding Bootstrap in django-pipeline
Issue I have a Django application with which I am using the django-pipeline package and bootstrap.css: PIPELINE_CSS = { ‘myCSS’: { ‘source_filenames’: ( ‘css/bootstrap.css’, ‘css/bootstrapoverride.css’, ), ‘output_filename’: ‘bootmin.css’, ‘variant’: ‘datauri’, }, } As you can see above I have included
Continue readingOverriding Bootstrap in django-pipeline
Issue I have a Django application with which I am using the django-pipeline package and bootstrap.css: PIPELINE_CSS = { ‘myCSS’: { ‘source_filenames’: ( ‘css/bootstrap.css’, ‘css/bootstrapoverride.css’, ), ‘output_filename’: ‘bootmin.css’, ‘variant’: ‘datauri’, }, } As you can see above I have included
Continue reading